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

Open
github-bot wants to merge 1 commit from github-bot/gh-1060 into main AGit
Owner

@⁠sodove on GitHub · 2026-11-24 17:28 UTC · original
sodove:test/w64g-reference-default → main · +51 −13 · 2 files · 1 commits · open

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.

**@⁠sodove** on GitHub · 2026-11-24 17:28 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1060) `sodove:test/w64g-reference-default` → `main` · +51 −13 · 2 files · 1 commits · open Claimed as `TEST-W64G-REF-DEFAULT` in [#14](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:35:55 +00:00
Author
Owner

@⁠Sangonapou on GitHub · 2026-11-24 18:15 UTC · original

Tested fc5d08b8 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.
**@⁠Sangonapou** on GitHub · 2026-11-24 18:15 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1060#issuecomment-7140391193) Tested fc5d08b8 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.
Author
Owner

@⁠sodove on GitHub · 2026-11-24 18:24 UTC · original

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** on GitHub · 2026-11-24 18:24 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1060#issuecomment-7140612198) 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).
Author
Owner

@⁠sodove on GitHub · 2026-11-24 18:46 UTC · original

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).

**@⁠sodove** on GitHub · 2026-11-24 18:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1060#issuecomment-7141131001) 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](https://docs.vulkan.org/spec/latest/chapters/shaders.html#shaders-varying-subgroup-size) **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).
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1060/head:github-bot/gh-1060'
git switch 'github-bot/gh-1060'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1060'
git switch 'github-bot/gh-1060'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1060'
git switch 'github-bot/gh-1060'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1060'
git switch 'main'
git merge --squash 'github-bot/gh-1060'
git switch 'main'
git merge --ff-only 'github-bot/gh-1060'
git switch 'main'
git merge 'github-bot/gh-1060'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.