Repository navigation
Docs/Tests: sync mesh v5 notes in design.md and add NumThreads constant regression test - #261
Merged
ItsNotRexed merged 1 commit intoNov 21, 2026
Conversation
…nt regression test
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Small follow-up to #209 (
caac27b), #219 (49f24bf),7b82460and3fae38ato sync staledocs/design.mdnotes with the merged meshv5model and lock down theNumThreadsconstant-registration fix with a translator regression test:docs/design.md:ms_v5_workgroupdescription): updated expected pixels fromx + 2*y + 6*zto(32*g, 32*g + 1, 32*g + 31, 1)forg = x + 2*y + 6*z(matching3fae38a).Mesh shaderscontract row): cites the 9,282/9,282 corpus count (from Coordinating who works on what (moved to #374) #156 / Docs/Tests: confirm SHADER-4 system values on the corpus, add a mesh s3 wave-ID test #240) andruntime/test/shaders/ms_v5_workgroup.asm(GPU-checked 24/24 on RTX 4060 Ti in3fae38aand RTX 3080 in Test mesh v5 on a 2 × 3 × 4 workgroup grid (SHADER-4) #219), while keeping explicit what remains unverified on Xbox hardware (low 7 bits ofv5on lanes1..127and 3DDispatchMeshflattening vs X-only).Mesh/compute input registers (historical measurement)row): updated the superseded summary fromv5 as the workgroup indextov5 = linearGroupIndex * NumThreads + LocalInvocationIndex.tests/test_translate.py:test_mesh_v5_seed_and_threads_constantparametrized overNumThreads=96and128(withmax_vertices=64, max_primitives=64, so neither constant is referenced elsewhere inms_tri.asm), assertingOpConstant %uint <threads>is declared,%wbase = OpIMul %uint %wlin <cid>,%v5v = OpIAdd %uint %wbase %lidx,OpStore %v5p %v5v, and validating withspirv-as/spirv-valso7b82460cannot regress.Note:
docs/design.mdline 230 overlaps with open PR #240; happy to rebase if #240 merges first.AI-assisted.
Tested
tools/rdna2spirv.pyuntouched).pytest/llvm-mc/spirv-val/GPU run):python -m compileall -q make_game.py tools tests— exit 0python -I make_game.py --help— exit 0python -I tests/test_shader_checks.py— 10/10 OKpython -I -m unittest discover -s tests/semantic -v— 388/388 OKOpConstant,OpIMul,OpIAdd,OpStore) directly againstrdna2spirv.translate()forthreads=96(%c60) andthreads=128(%c80) usingms_tri.asmwithmax_vertices=64, max_primitives=64.pytest tests/test_translate.pywithllvm-mc+spirv-as+spirv-valruns in CI (translator-tests).Checklist
CONTRIBUTING.md), including in logs or reports quoted here.docs/design.md, with how it was confirmed.