Repository navigation
w64_graphics: vs_w64_a_bpermute, a vertex-stage ds_bpermute fixture (tier A, GPU-checked on RADV) - #7311
w64_graphics: vs_w64_a_bpermute, a vertex-stage ds_bpermute fixture (tier A, GPU-checked on RADV)#7311sskver wants to merge 2 commits into
Conversation
…tier A, GPU-checked on RADV)
|
lgtm |
|
Second vendor, same fixture: AI-assisted (Claude Code, Claude Sonnet 5.5). |
|
Tested AI-assisted (Claude Code), no game files. |
|
Tested b2c511a 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
So the first Windows NVIDIA result, next to the RTX 5080 (Linux) and the AMD runs above. As on the 5080, this only checks the default-size image against the derived words; the 64-vs-32 comparison needs RADV. Synthetic fixture only, no game files. AI-assisted (Claude). |
…t, not an even-start assumption
|
Thanks to @InCaseOf, @nullmarsh and @Joaco9020 for testing. The RX 5700 XT failure was the fixture's, not the translator's: I had assumed every wave starts at an even vertex, which holds on gfx1036 but not on gfx1010's 64/59 packing, so AI-assisted (Claude Code, Claude Sonnet 5.5). |
|
Tested b2c511a 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 3e42b89 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.
The packing you measured on the gfx1036 iGPU is the same on this discrete gfx1031 (
So two RDNA2 GPUs agree that the 32-lane run is a repacking rather than two halves of the 64-lane waves. AI-assisted (Claude Code). |
|
Re-tested the updated head |
|
Tested 3e42b89 (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. |
|
Re-tested on the chip that broke the original fixture: gfx1013 now passes on Environment. AMD BC-250 (RDNA2 APU, Cyan Skillfish, gfx1013), RADV, Mesa 26.2.7, Vulkan 1.4.354, Bazzite 45 (Fedora 45), Python 3.15.2. Shaders built from this head: 269 translated, 269 pass Before and after on gfx1013:
That old failure is the same class as @InCaseOf's on gfx1010: the fixture's assumption was about the packer, not the stage. For the record, what gfx1013 actually packs, measured with
Cross-device. The 64-lane reference written by this run on gfx1013, used as No game files. AI-assisted (Claude). |
Claim: #7231 (comment)
Adds
vs_w64_a_bpermute, a vertex-stageds_bpermute_b32fixture for SHADER-10 tier A. The pixel counterpartps_w64_a_bpermuteexists; there was no vertex or geometry permute fixture.Each vertex stores four words to its heap record, all a function of the vertex index
valone:v ^ 1,3 * (v ^ 1) + 7,v(a round trip through lane^ 1), andv >> 1. The address comes from the lane id and uses address bits 2..6 only, so it is the same in the wave and in a half.Changes: the
.asm, aFIXTURESentry (_vs_a_bpermute) inw64_graphics.py, and anEXPECTentry intests/test_wave64_halves_fixtures.py. No translator change.Tested (no game files):
LEONIDA_VK_DEVICE=raphael, test programs built from main09b9ba8.w64_graphics.pyover all fixtures: 30 of 30ok(the 29 existing plus this one), exit 0, tiers A 12 / B 8 / C 13. The new fixture's records are identical at wave64 and wave32 and equal the derived words.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 vertices on this GPU (measured with
vs_w64_c_lane_id, 960 vertices; one GPU only, so the header says so): at wave64 the waves hold 64, 62, 64, 62, ... vertices (first vertices 0, 64, 126, 190, 252, ...), at wave32 they hold 32, 32, 32, 30, ... (0, 32, 64, 96, 126, ...), a period of 126 vertices. Every wave32 wave is one half of a wave64 wave here. Every wave starts at an even vertex, so onlylane ^ 1is guaranteed to hold vertexv ^ 1: a first draft that readlane ^ 2andlane ^ 3failed at both sizes with identical records, which is why the fixture useslane ^ 1only.This differs from the
w64_graphics.pydocstring ("a repacking, not the two halves of the 64-lane waves"), at least on gfx1036. I did not change that text; I have no GFX12 GPU to compare against.AI-assisted (Claude Code, Claude Sonnet 5.5).
🤖 Generated with Claude Code