tests: report dispatch widths and first different subgroup compaction word #2406
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2414"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by RavenCurseBurg on 2026-11-25T16:01:37Z.
Refs #768. When repeated dispatches differ, the fixture now reports the first differing word, its field, both hexadecimal values, both reported subgroup widths and the mismatch count. The bridge/direct comparison uses the same diagnostic. A repeat that returns a capability skip after a successful first readback remains a strict failure with a distinct message.
Each negative control now compares all 328 words against its mutated CPU reference at the width that control reported. A width change from the baseline still fails. The message distinguishes an exact control readback at a changed width from a control with incorrect data.
GPU verification. I ran the normal fixture three times each on Intel UHD 770 (32.0.101.5973, width 16), RTX 4060 (32.0.15.9579, width 32) and WARP (10.0.26100.9711, width 4). All nine runs passed. Both masks, both shader sources, all repeats and both negative controls matched their expected outcomes. DXC 1.9.2609.5, pinned SPIRV-Tools and patched SPIRV-Cross, Windows 11 26100.9711. The local debug layer was unavailable. Windows Server WARP with the debug layer passed the normal fixture and verified the changed-readback diagnostics using actual GPU words. Doc links and bidi checks passed.
Failure-path verification. I replayed intentionally paired GPU captures through the previous and current drivers. All nine failure cases still failed. The normal runs above were stable; the replay tests diagnostics and does not report a spontaneous width change.
00008421→00004812, 44 differing words00000000→00000010, 106 differing wordsThe replay also covered a changed direct repeat, bridge/direct disagreement, a missing repeat, an incorrect control at the same width, and an invalid width field.
Reproduce the normal fixture with the pinned SPIR-V tools configured:
AI assistance: Codex + GPT-6.2 Astra (xhigh).
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-25T16:04:01Z.
APPROVED: Test fixture improvement — reporting dispatch widths and first different subgroup compaction word. Testing-focused change.
Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-25T17:22:05Z.
Review: APPROVED
Approved at head
4722d3ef. The change is test diagnostics plus a docs paragraph, intests/spirv_window/compaction.pyanddocs/experiments.md. This adds an AMD adapter, at a fourth subgroup width, to the author's Intel, NVIDIA and WARP runs.Environment
--preset dev,offscreen_checkbuilt at4722d3ef.tools/setup-spirv-tools.ps1, and DXC from SDK 10.0.26100.Normal fixture
waves=1)compared=328 mismatches=0, repeats identical,bridge_equals_direct=true. Both negative controlsstatus=caught,ballot_bitat word 65 (36 mismatches) andwrite_indexat word 257 (17 mismatches), eachmutated_reference=exact.debug_errors=0 debug_warnings=0.waves=16)There were no skips. Width 64 is new next to 16 on the Intel UHD 770, 32 on the RTX 4060 and 4 on WARP.
New diagnostics
I drove
compaction.mainwith real RX 9070 XT readbacks through a wrapper aroundrun()that perturbs one readback. I left the fixture unmodified.bridge readback changed between identical dispatches (mask_a): first_mismatch=word=65 field=ballot first=84218421 repeat=00000040 first_width=64 repeat_width=64 mismatches=263.bridge mask_a repeat skipped after first dispatch at width 64. That is the distinct strict failure the description promises, instead of a pass or skip.negative control ballot_bit differs from its mutated reference at word 32: baseline_width=64 control_width=32. The data is really width-64 data, so this is the "incorrect data" path, with both widths reported.Other checks
docs_links_checkpasses.main(8e5dcb69)./O2and coverage skips come from explicit workflow conditions. There are no review threads.AI-assisted; commands listed were executed locally.