Repository navigation
w64_graphics: a wave64 vs_/gs_ fixture skips where the stage measured 32-wide (TEST-1968) - #9275
GustawMatuszewski wants to merge 1 commit into
Conversation
…32-wide (TEST-1968)
|
Tested
The five that move from So on NVIDIA this trades a real check for a skip: these tier A/B fixtures pass today on a 32-wide VS/GS. Their 32-wide default run matches the 64-lane derived words, which is what tier A/B promise (the output doesn't depend on how the wave is cut), and it's the only NVIDIA/Windows evidence for them (e.g. #7311's Suggestion: keep the new skip for what the MoltenVK case actually needs, e.g. only for tier C, or only when the 32-wide default run differs from the derived words and the fixture isn't tier A/B, so a 32-wide device that agrees with the derived words keeps reporting |
|
AI-assisted test. Requesting a change: on NVIDIA this turns five passing fixtures into skips. Tested
So on NVIDIA (32 only, ignores A suggestion that keeps both outcomes: compare the default run first, and turn a mismatch into this skip when the probe measured a 32-wide stage. MoltenVK then skips instead of failing (TEST-1968), and NVIDIA keeps its five passes. |
|
tested
so on moltenvk the vertex stage has no subgroup operations at all. it is not running 32 wide. spirv-cross rejects the shader (
#8885 is what fixes the moltenvk case (TEST-1968's original report). this pr's description says moltenvk/metal runs the stage 32 wide, and that does not hold on this m4. together with the two nvidia checks above (5 fixtures that pass become skips), it looks like this pr's skip only ever fires on devices where those fixtures pass. the two prs merge cleanly, but #9275 adds nothing on moltenvk. no game files. AI-assisted (local qwen 3.8 27b) |
|
Tested
AI-assisted (Claude Code). |
|
checked: #9275 at |
|
Independent Apple M4 / MoltenVK validation of current head Host: Mac mini (Apple M4), macOS 27.0.1 (26A434), MoltenVK 1.4.2, Vulkan loader/headers/tools 1.4.363.0, Python 3.12.16, AppleClang 21.0.0, CMake 4.5.1, LLVM/ I built base and head in separate directories and translated the same 32 hand-written fixtures for each: 32/32 translated and 32/32 passed The real GPU result is identical on base and head: 22 SKIP, 7 FAIL, exit 1. The 2 GS fixtures skip because MoltenVK has no geometry stage; all 20 PS fixtures skip for the documented subgroup-size reasons. All 7 I also ran a synthetic negative control against the unmodified PR module. With a probe reporting lane 31, both correct output and output with the first expected word deliberately corrupted return Conclusion: not a pass on Apple M4/MoltenVK. This PR alone does not resolve TEST-1968 on this driver, and its new skip is broader than an unsupported-stage check. This is consistent with the capability problem addressed by #8885, but I did not merge or modify either PR for this validation. AI-assisted validation; all GPU commands were actually executed on the M4. |
Item: TEST-1968 (#9235) — a
vs_w64_*fixture reports a failure on a device that cannot run it, instead of skipping.Claim: #9235 (comment)
What happens today
A
vs_w64_*/gs_w64_*fixture's words are derived for 64-lane waves (x = i % 64,y = i // 64), and the two widths come from RADV: wave64 by default, wave32 withRADV_PERFTEST=gewave32. A driver that runs the stage 32-wide and ignores the variable — MoltenVK/Metal, one subgroup size (32) — draws a 32-wide default run,_wave_size()cannot force 64, sodraw()keeps only the default run andcheck()compares it against the 64-lane words. The result isdefault size: N of M pixels differ from the derived words: the device's wave width reported as a fixture failure.What this changes
_wave_size()already measures the width with that stage's probe (vs_w64_c_lane_id/gs_w64_c_lane_id: the largest lane id is 32..63 in a wave64 and below 32 in a wave32). The measurement is now recorded (_measured) next to the existing "did the width take effect" flag, andcheck()uses it:Skip("SKIP (the vertex|geometry stage ran a 32-wide subgroup here and could not be asked for 64 (lane N, measured with <probe>): this fixture's words are derived for 64-lane waves)"), exit 0.unsupported: ..., i.e. it measured nothing) → unchanged: the default run is still compared, astest_unsupported_probe_keeps_default_drawrequires. An unmeasured width is not evidence of 32.The decision uses the probe's own measurement rather than matching a driver's error string, so a device that is 32-wide for some other reason is treated the same way, and a real 64-wide mismatch is still a failure. The module docstring says so next to the
vs_w64_*paragraph.Evidence
Stubbed end-to-end through
main()with a syntheticvk_harness(adevice: ... (subgroup 32..32)device that ignoresRADV_PERFTEST, whose fixture words are deliberately wrong so a comparison cannot pass):Tests added in
tests/test_w64_graphics_probe.py(the existing mock stubs gain aprobe_laneknob):test_a_stage_measured_32_wide_skips_instead_of_failing: a probe that reports lane 31 skipsvs_w64_a_skip(vertex) andgs_w64_a_ring(geometry), exit 0, and the output names the stage and does not contain a "differ from the derived words" failure.test_a_stage_measured_64_wide_still_compares: a probe that reports lane 63 still yieldsok, so the skip cannot swallow a real result.Tested
CPU only, Linux, no GPU, no LLVM/SPIR-V tools, no game files:
python -I tests/test_w64_graphics_probe.py→ 6 tests OKpython -I tests/test_w64_graphics_args.py→ 3 tests OKpython -I tests/test_w64_graphics_reference.py→ 1 test OKpython -m compileall -q runtime/test/shaders/w64_graphics.py tests/test_w64_graphics_probe.py→ cleanpython -I scripts/check_no_game_data.py runtime/test/shaders/w64_graphics.py tests/test_w64_graphics_probe.py→ exit 0Limit
I have no macOS/MoltenVK host, so I could not reproduce the reported
vs_w64_*run itself; the numbers above come from a synthetic harness driving the same code path. The MoltenVK figure for TEST-1968 still needs someone with a Mac — if the maintainer wants that recorded before this lands, this PR can wait and I will re-run on a Mac (or hand the branch to whoever has one).