Skip to content

Compare tier C references against a verified 32-wide draw (TEST-W64G-REF-DEFAULT) - #1060

Open
sodove wants to merge 1 commit into
ProjectLeonida:mainfrom
sodove:test/w64g-reference-default
Open

sodove wants to merge 1 commit into
ProjectLeonida:mainfrom
sodove:test/w64g-reference-default

Conversation

@sodove

@sodove sodove commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Claimed as TEST-W64G-REF-DEFAULT in #14.

What and why

With a saved 64-lane reference and a 64-wide default, the tier C checker could report a failure after a successful comparison of the forced 32- and 64-wide draws. It tested the default draw a second time and required a 64-wide result to differ from its own reference.

Use the confirmed 32-wide draw for the cross-width comparison. The default draw is also usable when the harness reports a fixed 32-wide device, including for vertex or geometry stages without an applied width request. A 64-only or unverified default cannot complete the comparison. The checks for partition-invariant words and for a difference in the partition-dependent words still apply.

Tested

  • Windows 11, Python 3.12.10. CPU replay reproduced the false failures before the fix. The three focused reference, probe and argument suites passed (13 tests). The matrix includes dual-width devices with both defaults, fixed 32/64, and a default whose width cannot be established.
  • On an RTX 5070 Ti (610.74, subgroup range 32–32), the hand-written A and B fragment fixtures passed. Tier C passed against an explicitly CPU-generated 64-lane control and skipped when it was absent. Native 64-wide cases were verified by CPU replay.
  • All 10 wave64 fixture classification and checker tests passed with LLVM and SPIRV-Tools available. The translator semantic suite passed all 6,168 tests across 470 files.
  • The game-data check passed for both changed files.

AI-assisted: yes, OpenAI Codex.

@Sangonapou

Copy link
Copy Markdown
Contributor

Tested fc5d08b on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, fixed subgroup 32..32), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300): pass

Runtime built at this head with scripts\build_runtime.ps1 (MSVC 19.51); shaders from runtime/test/shaders/build.py (llvm-mc 23.1.6, SPIRV-Tools 2026.4; 284 translated, 284 pass spirv-val). No game files.

  • tests/test_w64_graphics_reference.py: 5 OK.
  • w64_graphics.py <spirv dir> runtime\build without W64G_REF: exit 0; tier A 9/9 and tier B 8/8 ok; all 12 tier C SKIP (tier C needs verified 32- and 64-wide draws; W64G_REF can supply the 64-wide draw). So on a fixed 32-wide device with no 64-wide reference it skips rather than reporting a failure, as described. I have no 64-wide device to make a W64G_REF capture; with one, this card could supply the verified 32-wide side of the comparison.

@sodove

sodove commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for testing the exact head on Ampere. The 9 tier A and 8 tier B passes plus 12 tier C skips are the expected result on a fixed-32 device without a saved 64-lane reference.

For anyone looking for the other half of the comparison, #1075 has a relevant Windows result on a Granite Ridge iGPU. It ran the native 64-wide compute fixtures, but the driver could not require a 64-wide fragment subgroup. That run did not exercise w64_graphics.py. A graphics reference for this PR still needs a confirmed 64-wide draw for the stage being compared.

AI-assisted: yes (OpenAI Codex).

@sodove

sodove commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Tested fc5d08b8 on two physical GPUs in the same Windows 11 26100.7623 system: a Ryzen 5 9600X integrated Radeon (Granite Ridge, PCI 1002:13c0, AMD 26.11.2 / 32.0.21045.29003) and an RTX 5070 Ti (610.74). Both adapters were selected explicitly. I built the native harnesses at this head and translated and validated 49 repository-authored synthetic fixtures.

The Radeon reports subgroup 32–64, default 64. Only compute supports requesting a specific size. All 18 native wave64 compute readbacks matched. On the default pixel, vertex and geometry lane-ID probes, the Radeon actually produced lane IDs 0–63 in each stage. The RTX reports a fixed width of 32.

Device and reference source Tier A Tier B Tier C
RTX, no reference 9 pass 8 pass 12 skip
RTX, Radeon files written by stock W64G_SAVE_REF 9 pass 8 pass 4 pass, 8 skip
RTX, same files plus eight externally captured Radeon default fragment readbacks 9 pass 8 pass 12 pass

Stock saving produced nine vertex/geometry references, including four tier C cases. For the extra eight fragment cases I captured the output of the unmodified harness on the Radeon twice per fixture. Each pair was identical and passed the fixture's invariant checks. These are default draws: the fragment modules were SPIR-V 1.5, the stage flags were zero, and the device reports a default subgroup size of 64. The pixel lane-ID fixture independently exposed all 64 lanes. I did not treat an unhonoured size request as a forced fragment draw. Vulkan subgroup-size rules

Regression control on hardware: gave the same twelve tier C references back to the Radeon. The parent checker (32950551) exited 1 with twelve false failures because it compared the default draw against itself. This PR exited 0 and skipped all twelve, since the Radeon had no verified 32-wide draw. Feeding those same references to the RTX passed all twelve, as shown above.

Synthetic fixtures only. Results and counts only. AI-assisted: yes (OpenAI Codex).

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.

2 participants