Skip to content

w64_graphics: vs_w64_a_bpermute, a vertex-stage ds_bpermute fixture (tier A) - #9798

Open
sskver wants to merge 2 commits into
ProjectLeonida:mainfrom
sskver:vs-w64-bpermute-fixture
Open

sskver wants to merge 2 commits into
ProjectLeonida:mainfrom
sskver:vs-w64-bpermute-fixture

Conversation

@sskver

@sskver sskver commented Nov 23, 2026

Copy link
Copy Markdown

Re-filed from #7311, which was closed in the repo move (same branch, same head 3e42b89, nothing changed). Claim: #7231 (comment)

Adds vs_w64_a_bpermute, a vertex-stage ds_bpermute_b32 fixture for SHADER-10 tier A. The pixel counterpart ps_w64_a_bpermute exists; there was no vertex permute fixture.

Each vertex stores four words to its heap record: a lane ^ 1 read, an affine function of it, a round trip through lane ^ 1, and v >> 1. The expected words are derived from the lane layout that vs_w64_c_lane_id measures at the same size, because GPUs pack vertices differently: RADV gfx1036 and gfx1031 pack 64/62, an RX 5700 XT (gfx1010) and a BC-250 (gfx1013) pack 64/59, and the AMD Windows driver on an RX 9060 XT packs 64/21. A first version assumed lane ^ 1 held vertex v ^ 1 and failed on the odd-start GPUs; the translator was never at fault, and the 64-vs-32 images were identical on every GPU reported.

Changes: the .asm, a FIXTURES entry, an EXPECT entry, layout_words, layout_derived and layout_is_halves helpers in w64_graphics.py, and 6 new tests in tests/test_wave64_halves_fixtures.py. No translator change.

Results (no game files; counts and pass/fail only):

  • Ours: RADV gfx1036 and an RTX 5080 (native and LEONIDA_W64_EMULATE=1): 30 of 30 ok, 16 pytest passed.
  • Reported on the old PR at this head: RX 5700 XT (gfx1010), RX 9060 XT (gfx1200), BC-250 (gfx1013), RTX 2060, RTX 4070, RTX 5090, a gfx1036 iGPU on the AMD Windows driver. All pass.

AI-assisted (Claude Code).

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.

1 participant