Compare tier C references against a verified 32-wide draw (TEST-W64G-REF-DEFAULT) #1060
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1060"
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 ubiquitarianism/leonida. Originally posted by sodove on 2026-11-24T17:28:26Z.
Claimed as
TEST-W64G-REF-DEFAULTin #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
AI-assisted: yes, OpenAI Codex.
Imported from ubiquitarianism/leonida. Originally posted by Sangonapou on 2026-11-24T18:15:42Z.
Tested
fc5d08b8on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, fixed subgroup 32..32), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300): passRuntime built at this head with
scripts\build_runtime.ps1(MSVC 19.51); shaders fromruntime/test/shaders/build.py(llvm-mc23.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\buildwithoutW64G_REF: exit 0; tier A 9/9 and tier B 8/8ok; all 12 tier CSKIP (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 aW64G_REFcapture; with one, this card could supply the verified 32-wide side of the comparison.Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-24T18:24:55Z.
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).
Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-24T18:46:24Z.
Tested
fc5d08b8on 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.
W64G_SAVE_REFStock 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).
Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:46:31Z.
Verified by OreoFR
5cb45921e+ PR headb2a7dabd1; green run in a merge package of 2 PRs, no new ctest failure vs mainpython -I tests/test_w64_graphics_reference.py ; package ctestAI-assisted (Claude Code, Claude Opus 5.5).
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-11-29T01:34:59Z.
Independent Windows 11 + NVIDIA GeForce RTX 3090 Verification (
b2a7dabd10merged ontomain5825b02ff8)Environment: Windows 11 (
10.0.26200), MSVC19.44.35228, Python3.12.10(-I),llvm-mc(gfx1030), SPIRV-Tools /VK_LAYER_KHRONOS_validation1.4.363.1(LEONIDA_VK_VALIDATION=1), physical NVIDIA GeForce RTX 3090 (Ampere, driver610.88, Vulkan1.4, fixed subgroup32..32). Synthetic wave64 graphics fixtures only; no game files.Results — PASS (
0validation errors)main(5825b02ff8):#1060'stests/test_w64_graphics_reference.pyfails onmain(AttributeError: _device_range), and reproducing the dual-width(32, 64)case with a64-wide default draw onmain'sw64_graphics.checkreturns the false failure'tier C but the run equals the 64-lane reference: the detector is wrong'.main+b2a7dabd10:python -I tests/test_w64_graphics_reference.py:8/8 OK.w64_graphics.pyhardware sweep (32translated shaders,32/32spirv-valclean,LEONIDA_VK_VALIDATION=1):W64G_REF:30/30fixtures exit0— Tier A10/10 ok, Tier B8/8 ok, Tier C12/12 SKIP(SKIP (tier C needs verified 32- and 64-wide draws; W64G_REF can supply the 64-wide draw)),0validation errors.W64G_REF64-lane reference files on fixed-32RTX 3090 (_device_range == (32, 32)): both forced-32fragment (ps_w64_c_lane_id) and default-draw vertex (vs_w64_c_lane_id, exercising thesize is None+_device_range == (32, 32)path) complete the live Tier C comparison cleanly (check(...) == '',0validation errors).AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-29T14:37:21Z.
Merged at head
b2a7dab. Tested on this head by OreoFR, zmasi: the new test fails on main and passes with the PR (results in the comments above). AI-assisted: yes.