shader: lower wide private LDS transfers #918
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/925"
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 R0Y00/Xbox2Windows. Originally posted by stan495 on 2026-11-23T17:23:02Z.
Scope
Lower
ds_write_b64,ds_read_b64,ds_write_b96,ds_read_b96andds_read2_b32for a proven private 16-byte record atlocal_x << 4. Require 512 bytes of LDS, initialized read slots and an immediate LDS wait. Reject mixed scalar and wide address strides because the regions could overlap across lanes.Verification
Tested
d686d24on Windows 11 25H2 (10.0.26200.9974). WARP used Microsoft Basic Render Driver 10.0.26100.9818. Hardware used AMD Radeon RX 7900 XTX with driver 32.0.32029.2010. The D3D12 debug layer was enabled.7 passed, 0 failed and 0 skipped. Both backends matched the CPU reference for the entire 320-word UAV after one and three groups. Reading the wrong qword, clearing a source word and swapping dual-read offsets each changed the comparison at word 0.
LLVM 15.0.7 assembled and decoded the fixtures, and both translation paths reproduced the same HLSL. The records count all five added DS forms.