Repository navigation
w64_graphics: check tier A/B pixel fixtures at 16 live lanes, skip only the lane ^ 16 words (TEST-433) - #5784
Invictus2076 wants to merge 1 commit into
Conversation
…ly the lane ^ 16 words (TEST-433)
Where no fragment subgroup size can be required and the device may run
narrower than 32 (Intel's Windows driver lists compute, task and mesh only
in requiredSubgroupSizeStages), the runner skipped every tier A and B
pixel fixture before NEEDS_LIVE_LANES was even looked at. It now measures
the live lanes with ps_live_width (once per run) and:
- 16 or more: checks the fixtures; the words NEEDS_LIVE_LANES lists are
left out where the width is less than they need and reported as a SKIP
of those words, every other word must still be exact
- below 16, or probe failed: SKIP, as before
NEEDS_LIVE_LANES becomes per word (name -> {word: lanes}) and lists the
TEST-319 permute words that read lane L ^ 16: ps_w64_a_bpermute r2,
ps_w64_a_swizzle r2, ps_w64_a_permlane r2 and r3.
Measured on Intel Arc Graphics (Meteor Lake Xe-LPG, Windows driver
101.6314): 16 live lanes (lane ids 0..15), the usual 2x2 quad layout.
Those four words, and only those, are wrong (4,095-4,096 of 4,096 pixels
each); every other tier A and B word and ps_vcmpx_forms is exact on all
4,096 pixels. Before: 10 tier A/B pixel fixtures skipped. After: 7 ok,
3 SKIP of the lane ^ 16 words only.
|
Tested
|
|
Tested 6e4a06b on AMD RADV RAPHAEL_MENDOCINO (Ryzen 9 9950X3D iGPU), subgroup 32..64: w64_graphics.py on the 29 fixtures exits 0 with 17 rows ok (including ps_w64_a_bpermute, ps_w64_a_permlane and ps_w64_b_waterfall, and the vs_ and gs_ tier A/B rows) and 12 tier C rows skipped ("tier C needs a device that can require both 64 and 32, or W64G_REF"), 0 FAIL. test_w64_graphics_narrow.py runs 7 tests OK and tests/test_wave64_halves_fixtures.py passes 10 under pytest. This device has 64-wide subgroups, so the 16-live-lane skip path is not reached here, and I did not run a main control. AI-assisted. |
|
Tested 6e4a06b, merged onto
No game files. AI-assisted (Claude Code). |
larpinguser
left a comment
There was a problem hiding this comment.
Summary
TEST-433: runtime/test/shaders/w64_graphics.py replaces the blanket skip of all tier A/B pixel fixtures with a measured live-lane width from ps_live_width, adding _measure_live_width() and a per-word NEEDS_LIVE_LANES map for words reading lane L ^ 16. ps_live_width.asm is tweaked, tests/test_w64_graphics_narrow.py (112 lines) added, and docs/testing.md updated.
Why merge
Lets Intel iGPU/16-lane devices actually validate nearly all wave64 pixel fixtures instead of skipping them, excluding only the three words needing a nonexistent partner lane — verified on Arc Meteor Lake.
Verdict: Approve
SummaryTEST-433: Why mergeLets Intel iGPU/16-lane devices actually validate nearly all wave64 pixel fixtures instead of skipping them, excluding only the three words needing a nonexistent partner lane — verified on Arc Meteor Lake. Verdict: Approve |
|
Tested 6e4a06b on Intel UHD Graphics 770 (i7-12700K iGPU), Windows driver 32.0.101.7088 (Vulkan 1.4.323), Windows 11 Pro 26H2 (build 26300): pass This is the UHD 770 + Windows driver combination from the original symptom. Setup: Vulkan SDK 1.4.363.0, llvm-mc 23.1.6, Python 3.15.0, VS 2022 17.14. Device reports subgroupSize 32, min/max subgroup size 8..32, maxPushConstantsSize 256 (no
No FAIL on any run. Matches the Arc (Windows) and Raptor Lake ANV results above: 5 ok → 14 ok with exactly the three lane ^ 16 skips. I used an AI assistant to write the test script and summarize the logs; the runs and hardware are mine. |
Claimed in the coordination issue as: TEST-433 (#5581)
Depends on: builds on #2998 (kapitche's
ps_live_width/NEEDS_LIVE_LANES, already in main)What and why
TEST-433: the tier A wave64 pixel fixtures fail on Intel iGPUs and the cause was unknown. On main, a device that can run narrower than 32 and cannot require a fragment subgroup size (Intel's Windows driver lists compute, task and mesh only in
requiredSubgroupSizeStages) still hits the blanket skip of every tier A and B pixel fixture, which comes before theNEEDS_LIVE_LANES/ps_live_widthcheck from #2998, so that check never runs there.Cause, measured on Intel Arc Graphics (Meteor Lake Xe-LPG, Windows driver 101.6314): 16 live lanes per fragment subgroup (lane ids 0..15 from
ps_w64_c_lane_id, 16 fromps_live_width), with the usual 2x2 quad layout (lane & 3 = TL, TR, BL, BR on all 4,096 pixels). The only wrong words are the ones that read laneL ^ 16, which a 16-lane subgroup does not have:ps_w64_a_bpermuteds_bpermutefrom lane ^ 16, twiceps_w64_a_swizzleds_swizzleSWAP,16, twiceps_w64_a_permlanev_permlanex16, twice eacha_discard,a_one_lane,a_skip, the fourps_w64_b_*,ps_vcmpx_formsThat also matches the UHD 770 symptom in the item (these three fixtures wrong on nearly every pixel at 16 live lanes): one word per pixel that needs lane ^ 16.
Change:
ps_live_width, now measured once per run): 16 or more live lanes and the tier A/B pixel fixtures are checked; below 16, or when the probe cannot run, they are aSKIPas before.NEEDS_LIVE_LANESbecomes per word (name -> {word: lanes}) and lists the TEST-319 permute words above (bpermute r2, swizzle r2, permlane r2 and r3, each needing 32). Where the measured width is less, only those words are left out and reported asSKIP r2/SKIP r2, r3; every other word of the fixture must still be exact, so a regression inside the row still fails.tests/test_wave64_halves_fixtures.py's live-lane test is updated to the per-word shape (same three cases). Newtests/test_w64_graphics_narrow.pyreplays the Arc frames on the CPU (7 tests: 16-lane pass, per-word skip, in-row failure, below 16 / unmeasured, 32 lanes, one measurement per run, listed words match the.asmheaders).docs/testing.mdrecords the measurement;ps_live_width.asm's comment says words instead of fixtures.Tested
Windows 11 (22631), MSVC 14.44 (VS 2022), Vulkan SDK 1.4.363.0, runtime rebuilt at main
561b65a8plus this change. Fixtures built withruntime/test/shaders/build.py(LLVM 21.1.8llvm-mc, SPIRV-Tools 2025.1): 261 / 261 translated and passedspirv-val.w64_graphics.py, all 29 fixtures, before (main) and after:ps_fixture skippedSKIPof the lane ^ 16 words only, no failuresps_vcmpx_formsdrawn directly withvk_harnessgives the expected words on all 4,096 pixels on both GPUs. Unit tests:test_w64_graphics_narrow.py,test_w64_graphics_reference.py,test_w64_graphics_args.py,test_docs_links.py,test_docs_table_rows.py,test_text_write_line_endings.pyOK on Linux and Windows;pytest tests/test_wave64_halves_fixtures.py10 passed on Linux.git diff --checkclean.AI-assisted: yes (Claude).
Checklist
docs/design.md, with how it was confirmed. (Does not apply: no translator rule changes.)