Skip to content

w64_graphics: skip a vs_/gs_ fixture where the stage measured 32-wide (TEST-1968) - #11

Open
GustawMatuszewski wants to merge 1 commit into
ProjectLeonidaL:mainfrom
GustawMatuszewski:tests/w64-graphics-32-wide-stage-skip
Open

GustawMatuszewski wants to merge 1 commit into
ProjectLeonidaL:mainfrom
GustawMatuszewski:tests/w64-graphics-32-wide-stage-skip

Conversation

@GustawMatuszewski

Copy link
Copy Markdown

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 in runtime/test/shaders/w64_graphics.py derives 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).

_measured now records the largest lane id each probe run wrote, per (stage, size), so check() can skip with the width the probe actually measured:

SKIP (the vertex stage ran a 32-wide subgroup here and could not be asked for 64 (lane 31,
      measured with vs_w64_c_lane_id): this fixture's words are derived for 64-lane waves)

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_heap takes probe_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.py on 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

  • Based on current main (6591ba9), one commit, merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • No new translator rule.

… (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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant