xshader: avoid redundant reads in paired Wave64 local exchanges #234
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/234"
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 brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T14:46:17Z.
Change
DPP8, DPP16 row/quad controls, permlane16 and DS swizzle never select across a 32-lane half in paired Wave64. Read that half's VGPR directly and test the corresponding EXEC word. Out-of-row shift reads are wrapped within the row and discarded by the existing validity/write masks. Cross-half lane reads are unchanged.
Measurements
Identical synthetic dependent exchange programs, 3 runs with production DXC flags, median:
Half as many emitted WaveReadLaneAt calls for these exchange operations. These are synthetic compiler results, not a retail gameplay or driver-speed claim.
Validation
RTX 4080, NVIDIA 620.73.04, Linux, GE-Proton11-14:
Draft pending full check on this exact branch and AMD hardware validation. No title bytes or logs included.
Imported from brcly/TuxBox. Originally posted by gtb-sbe on 2026-11-26T16:09:45Z.
AMD run of the translator GPU stage on
5942f6b(this PR's head, tested as is on its basef3149ab).Host: RX 9060 XT (
1002:7590, RDNA4, runs wave64 natively), Mesa 26.2.6 RADV, GE-Proton11-14, Windows DXC 2026-09-29.python tuxbox.py check --no-gpu: all code checks pass.tools/check_translator_gpu.py --adapter 1002:7590 --only paired-wave64:PASS: 25 programs, 1638400 words, adapter 1002:7590(includes the newexchange_chainand the five new_x4variants).mainadded afterf3149ab(dpp8-exchange-*,dpp8-multiwave-*,lds-bounds,wave-guard-64-*) were not run.main4d3dd26on the same host: full stage 38/38,paired-wave64PASS: 19 programs, 1245184 words.One note on the setup: this branch predates #222, and with its name filter DXVK skipped both Vulkan devices here. The host names the card
AMD Radeon RX 9060 XT (RADV GFX1200), while the guest seesAMD Radeon RX 9060 XT (radv 26.2.6). As a result, every program failed with "no readback". For the runs above I applied only #222's harness change (ca399e4,tools/check_translator_gpu.py) locally. The translator code is unchanged. All guest logs showSkipping: UUID filterfor llvmpipe only, so they ran on the RADV card.Not run: Lanes and the rest of the GPU gate, NVIDIA.
Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T23:21:14Z.
Deferred: maintainer measured no meaningful DXC improvement on the recorded corpus. Preserve the experiment and AMD evidence. Closing this draft to make the review queue manageable, per the maintainer's request. The branch and history remain intact at
5942f6b; no branch deleted.Pull request closed