google/dawn/roll-mesa
Claude Code and agent skill by google/dawn
- vendor
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-mesaSKILL.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
- Read
.gclientin the Dawn workspace root. - Verify that
"checkout_mesa": Trueis set insidecustom_vars. - If
checkout_mesais missing or not set toTrue, **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
- Check whether
third_party/mesa/srcexists and is populated (e.g., check for
third_party/mesa/src/meson.build).
- If
third_party/mesa/srcis 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
- Record the current
third_party/mesa/srccommit hash fromDEPSso you can
diff upstream Mesa changes later (<old_hash>).
- Ask the user if they have already performed the roll / updated the
third_party/mesa/src hash in DEPS.
- If they have not updated it yet:
- Run
roll-dep(fromdepot_tools) to update the hash inDEPS:
``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.)*
- Record the new
third_party/mesa/srccommit hash fromDEPS(<new_hash>).
4. Sync the Updated Mesa Checkout
Run gclient sync to check out the updated third_party/mesa/src revision:
5. Build and Fix the GN Mesa Build
- Check the GN build directory (`out/active` by default):
- Read
out/active/args.gnand check that both of the following args are
enabled: ``gn tint_build_mesa = true tint_build_fuzzer_vulkan_support = true ``
- If
out/active/args.gndoes 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.
- Run the GN build:
``bash autoninja -C <gn_build_dir> third_party/mesa:mesa tint_wgsl_mesa_fuzzer tint_ir_mesa_fuzzer ``
- 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.ccor
third_party/mesa/mesa_action.py if needed.
- Re-run
autoninjauntilthird_party/mesa:mesa,tint_wgsl_mesa_fuzzer,
and tint_ir_mesa_fuzzer compile and link cleanly.
- Test the GN build: Run a smoke test with
tint_wgsl_mesa_fuzzerto
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
- SKILL.md in the repositoryCheckingagents/skills/roll-mesa/SKILL.md
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
[](https://verified-skill.com/skills/google/dawn/roll-mesa)