Repository navigation
w64_graphics: gs_w64_a_bpermute, a geometry-stage ds_bpermute fixture (tier A, GPU-checked on RADV) - #7338
w64_graphics: gs_w64_a_bpermute, a geometry-stage ds_bpermute fixture (tier A, GPU-checked on RADV)#7338sskver wants to merge 3 commits into
Conversation
… (tier A, GPU-checked on RADV)
|
I've checked the fixture's lane pairing and found one gap in the test coverage. Here is the review: Review:
|
…cted words, name the vs fixture's PR
|
Thanks for the review. Pushed a follow-up commit:
AI-assisted (Claude Code, Claude Sonnet 5.5). |
|
Second vendor, same fixture: AI-assisted (Claude Code, Claude Sonnet 5.5). |
|
Tested It's the packing, not the translator. Measured with For comparison, #7311's AI-assisted (Claude Code), no game files. |
|
Tested 794a199 on AMD Radeon RX 5700 XT (RDNA1, gfx1010, RADV NAVI10), Mesa 26.3.1, Linux 6.18 (Arch container): fail (the new fixture only; nothing else regresses)
RDNA1 packs the waves differently from gfx1036, measured with the probe fixtures (
So half the waves start at an odd vertex (8 of 16 VS waves, 4 of 8 GS waves at wave64), and the fixture's assumption that Two things that may help:
LLVM AI-assisted (Claude Code). |
|
Tested The default-size |
…t, not an even-start assumption
|
Thanks to @InCaseOf, @nullmarsh and @senyurah for testing. The failures on the RX 9060 XT (AMD Windows driver, waves of 64, 21, 64, 21, ...) and the RX 5700 XT (waves of 41) were the fixture's, not the translator's: I had assumed every wave starts at an even triangle, which holds on RADV gfx1036 but not there, so AI-assisted (Claude Code, Claude Sonnet 5.5). |
|
Tested 794a199 on Steam Deck LCD (Jupiter), AMD Custom GPU 0405 "Van Gogh", RADV Mesa 26.2.0-devel (git-5c65d4fc31), Vulkan 1.4.350, SteamOS 3.9.5 (holo), kernel 7.2.7-valve2-2-neptune-72-g31504582a073: inconclusive (pre-existing w64_graphics 64-lane exit -11 on this Deck)
AI-assisted (OpenCode). |
|
Tested afab304 on RX 5700 XT (RDNA1, gfx1010, RADV NAVI10), Mesa 26.3.1, Linux 6.18: pass
Same setup as my first run (test programs from AI-assisted (Claude Code). |
|
Re-tested AI-assisted (Claude Code), no game files. |
|
Tested AMD Radeon RX 6700 XT (gfx1031, discrete RDNA2), RADV Mesa 26.3.1, CachyOS, Linux 7.3.5; llvm-mc 23.1.5, SPIRV-Tools v2026.4, Python 3.14.10.
Geometry packing ( AI-assisted (Claude Code). |
|
Tested afab304 (merged onto main 976b3ec) on NVIDIA GeForce RTX 2060 (Turing), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 (10.0.26300), subgroup size 32: pass What I ran:
No GPU test changed status against main. With this PR: 18 ok, 12 SKIP — the new
The one failure on both sides is AI-assisted run (Claude Code); the numbers are from my machine. |
|
Same check on the geometry fixture: gfx1013 passes on Environment. AMD BC-250 (RDNA2 APU, gfx1013), RADV, Mesa 26.2.7, Vulkan 1.4.354, Bazzite 45 (Fedora 45), Python 3.15.2. Shaders from this head: 269 translated, 269 pass Before and after on gfx1013:
What gfx1013 packs, measured with Cross-device. The gfx1013 reference used as No game files. AI-assisted (Claude). |
Claim: #7231 (comment). Companion to #7311 (the vertex-stage fixture); independent of it, so either can merge first. Both add one line to the same
FIXTURESandEXPECTtables, so the second to land needs a trivial rebase.Adds
gs_w64_a_bpermute, a geometry-stageds_bpermute_b32fixture for SHADER-10 tier A. The geometry stage had onlygs_w64_a_ringand the lane-id probe.It is
gs_w64_a_ringplus fourlane ^ 1reads. Trianglep(from TEXCOORD0.x of input vertex 0, as ings_w64_a_ring) stores four words to its heap record, all a function ofpalone:p ^ 1,3 * (p ^ 1) + 7,p(a round trip through lane^ 1), andp >> 1.Changes: the
.asm, aFIXTURESentry (_gs_a_bpermute) inw64_graphics.py, and anEXPECTentry intests/test_wave64_halves_fixtures.py. No translator change.Tested (no game files):
LEONIDA_VK_DEVICE=raphael. Scripts from this branch (maine0816d6af);vk_harnessbuilt from main09b9ba8(noruntime/file the harness uses changed in between).w64_graphics.pyover all fixtures: 30 of 30ok(the 29 existing plus this one), exit 0, tiers A 12 / B 8 / C 13 (this branch does not contain w64_graphics: vs_w64_a_bpermute, a vertex-stage ds_bpermute fixture (tier A, GPU-checked on RADV) #7311's fixture).python -m pytest tests/test_wave64_halves_fixtures.py: 10 passed.llvm-mc21.1.8, SPIRV-Tools 1.4.363.0.How RADV packed the geometry invocations on this GPU (measured with
gs_w64_c_lane_id, 320 triangles; one GPU only, so the header says so): at wave64 the waves hold 42 invocations (first triangles 0, 42, 84, 126, ...); at wave32 each of those waves is split into 32 and 10 (0, 32, 42, 74, 84, ...). Every wave32 wave is one half of a wave64 wave, as for vertices. A wave starts at triangle42 * w, so odd waves start 2 mod 4 and onlylane ^ 1is guaranteed to hold trianglep ^ 1; that is why the fixture reads onlylane ^ 1.AI-assisted (Claude Code, Claude Sonnet 5.5).
🤖 Generated with Claude Code