Repository navigation
w64_graphics: skip a vs_/gs_ fixture where the stage measured 32-wide (TEST-1968) - #11
Open
GustawMatuszewski wants to merge 1 commit into
Conversation
… (TEST-1968) A vs_/gs_ fixture's words are derived for 64-lane waves (x = i % 64), so they only mean something where the stage really ran 64-wide. A device that runs it 32-wide and cannot be asked for 64 - MoltenVK/Metal has one subgroup size, 32 - draws the 32-wide default run, and comparing it against the 64-lane words reports the device's wave width as a fixture failure. `_measured` records the largest lane id each probe run wrote, per (stage, size), so check() can skip with the width the probe measured. A probe that could not run at all measured nothing and keeps the default-draw comparison. tests/test_w64_graphics_probe.py: the stub takes probe_lane, so the case covers a 32-wide stage (lane 31) skipping and a 64-wide one (lane 63) still comparing. python -I tests/test_w64_graphics_probe.py: 6 tests, OK.
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.
Claimed in the coordination issue as: n/a — this repository has no "Coordinating who works on what" issue, so the item is described here in full.
Depends on: none.
What and why
A
vs_/gs_fixture inruntime/test/shaders/w64_graphics.pyderives its expected words for 64-lane waves (x = i % 64), so they only mean something where the stage really ran 64-wide. A device that runs it 32-wide and cannot be asked for 64 — MoltenVK/Metal has a single subgroup size, 32 — draws the 32-wide default run, and comparing that against the 64-lane words reports the device's wave width as a fixture failure (TEST-1968)._measurednow records the largest lane id each probe run wrote, per(stage, size), socheck()can skip with the width the probe actually measured:A probe that could not run at all measured nothing and keeps the default-draw comparison, so a genuinely broken 64-wide device still fails.
tests/test_w64_graphics_probe.py: the stubbed_draw_heaptakesprobe_lane, so the new case covers a 32-wide stage (lane 31) skipping and a 64-wide one (lane 63) still comparing.Tested
python -I tests/test_w64_graphics_probe.py— 6 tests, OK.python -I scripts/check_no_game_data.py runtime/test/shaders/w64_graphics.py tests/test_w64_graphics_probe.py— clean.GPUs tested: n/a — no MoltenVK device was available here, so the skip path is covered by the unit test only (a stubbed probe that measured lane 31). A run of
run_gpu_tests.pyon a Mac should confirm the message and that the fixtures report SKIP instead of FAIL.AI-assisted: yes (Claude Code). No game files, no shaders, no captures.
Checklist
main(6591ba9), one commit, merges cleanly.