google/dawn/roll-mesa

Claude Code and agent skill by google/dawn

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Roll the third_party/mesa/src dependency in Dawn and update the custom GN and CMake Mesa Lavapipe build rules in third_party/mesa/. Use this skill when asked to roll, update, or bump the Mesa dependency or fix Mesa build issues after a roll.

Install

npx vskill@latest install google/dawn/roll-mesa

SKILL.md

The same SKILL.md was published earlier as google/dawn/roll-mesa.

Roll Mesa Dependency

Use this skill to roll third_party/mesa/src in Dawn and update Dawn's custom GN build rules in third_party/mesa/.

Workflow

1. Verify .gclient Configuration
  1. Read .gclient in the Dawn workspace root.
  2. Verify that "checkout_mesa": True is set inside custom_vars.
  3. If checkout_mesa is missing or not set to True, **stop and prompt the

user** to set "checkout_mesa": True in .gclient (or ask if they would like you to update .gclient for them) so that gclient sync pulls third_party/mesa/src, third_party/llvm-dev, and third_party/zstd.

2. Verify third_party/mesa/src is Present
  1. Check whether third_party/mesa/src exists and is populated (e.g., check for

third_party/mesa/src/meson.build).

  1. If third_party/mesa/src is missing or empty, prompt the user to run

gclient sync (or ask permission to run gclient sync now) before proceeding.

3. Roll third_party/mesa/src in DEPS
  1. Record the current third_party/mesa/src commit hash from DEPS so you can

diff upstream Mesa changes later (<old_hash>).

  1. Ask the user if they have already performed the roll / updated the

third_party/mesa/src hash in DEPS.

  1. If they have not updated it yet:
  • Run roll-dep (from depot_tools) to update the hash in DEPS:

``bash roll-dep third_party/mesa/src ` *(If the working tree has local changes or the user wants a specific commit, pass --ignore-dirty-tree and/or --roll-to <commit> as appropriate, or update the hash in DEPS` directly if requested.)*

  1. Record the new third_party/mesa/src commit hash from DEPS (<new_hash>).
4. Sync the Updated Mesa Checkout

Run gclient sync to check out the updated third_party/mesa/src revision:

bash
gclient sync
5. Build and Fix the GN Mesa Build
  1. Check the GN build directory (`out/active` by default):
  • Read out/active/args.gn and check that both of the following args are

enabled: ``gn tint_build_mesa = true tint_build_fuzzer_vulkan_support = true ``

  • If out/active/args.gn does not exist or does not have both args set to

true, ask the user whether they want to update out/active/args.gn or use a different GN build directory.

  1. Run the GN build:

``bash autoninja -C <gn_build_dir> third_party/mesa:mesa tint_wgsl_mesa_fuzzer tint_ir_mesa_fuzzer ``

  1. Analyze GN build results:
  • If the build fails, inspect the errors and compare upstream Mesa build

changes between the old and new commits: ``bash git -C third_party/mesa/src diff <old_hash>..<new_hash> -- "**/meson.build" "meson_options.txt" ``

  • Check for external dependency requirements: Determine whether the

failure requires updating another external dependency, such as third_party/llvm-dev (e.g., Mesa requires a newer LLVM version or newly added LLVM C++/C APIs not present in third_party/llvm-dev), third_party/zstd, or Python packages in vpython.toml.

  • STOP CONDITION: If another dependency (llvm-dev, zstd, etc.) must

be updated to roll Mesa, advise the user of the exact details and do not proceed, as updating those prebuilt packages requires manual steps outside the scope of this skill.

  • Mitigate within `third_party/mesa/`: If the failure is caused by

upstream Mesa source/codegen/flag changes that can be resolved in Dawn's custom GN rules, update:

  • third_party/mesa/mesa_sources.gni: Add, remove, or rename source files

in the source lists, or update mesa_common_defines / mesa_common_cflags*.

  • third_party/mesa/BUILD.gn: Update _mesa_action / shader codegen

targets, arguments, inputs, outputs, include directories, or _mesa_source_set dependencies, then run gn format third_party/mesa/BUILD.gn third_party/mesa/mesa_sources.gni.

  • third_party/mesa/mesa_llvm_sysroot_compat.cc or

third_party/mesa/mesa_action.py if needed.

  • Re-run autoninja until third_party/mesa:mesa, tint_wgsl_mesa_fuzzer,

and tint_ir_mesa_fuzzer compile and link cleanly.

  1. Test the GN build: Run a smoke test with tint_wgsl_mesa_fuzzer to

confirm libvulkan_lvp.so loads via lvp_icd.json and validates a WGSL shader cleanly: ``bash ./<gn_build_dir>/tint_wgsl_mesa_fuzzer --vk-icd=./<gn_build_dir>/lvp_icd.json --verbose test/tint/out_of_order_decls/alias/struct.wgsl ``

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 25 Nov 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/google/dawn/roll-mesa/badge)](https://verified-skill.com/skills/google/dawn/roll-mesa)

Something wrong with this skill or its page? Tell us.