You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
xshader: avoid redundant reads in paired Wave64 local exchanges - #234
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:
Exchanges
HLSL bytes
DXIL bytes
DXC seconds
128
168306 → 135314
20932 → 14500
0.156 → 0.120
512
638802 → 506834
73540 → 47812
0.876 → 0.666
Half as many emitted WaveReadLaneAt calls for these exchange operations. These are synthetic compiler results, not a retail gameplay or driver-speed claim.
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 new exchange_chain and the five new _x4 variants).
Full translator stage: 30/30 cases pass. That is every case this branch's harness has. The 8 cases that main added after f3149ab (dpp8-exchange-*, dpp8-multiwave-*, lds-bounds, wave-guard-64-*) were not run.
For comparison, main4d3dd26 on 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 sees AMD 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 show Skipping: UUID filter for llvmpipe only, so they ran on the RADV card.
Not run: Lanes and the rest of the GPU gate, NVIDIA.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.