direct compute: carry descriptor spills through v_writelane_b32 / v_readlane_b32 #3152
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows#3152
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Leyukaka on GitHub · 2026-11-27 18:31 UTC · original
Next instruction-coverage item, following #2940 (numeric SGPR spills through
v_writelane_b32/v_readlane_b32in the direct compute path, #2950). I am taking it: descriptor spills through VGPR lanes.Gap. The direct path refuses
v_writelane_b32when its scalar source is not numeric, with "unbound numeric SGPR sN". #2759 handles the same pattern in the Python compute translator.Measured on a local capture of 2,689 compute requests (counts and instruction shape only), with
compile_dxil --jobs 8 gfx1013-direct-cs@36 --requestsonmain80668b97:v_writelane_b32with that refusal, 34 of them wave32.s_load_dwordx4, a buffer descriptor. In 5 it was last written bys_mov_b32, and in 1 it is an entry SGPR.v_readlane_b32, from the same VGPR and the same constant lane.Plan:
v_writelane_b32to a constant lane of a VGPR, and back throughv_readlane_b32of the same constant lane.v_writelane_b32to another constant lane keeps the other lanes' symbols, and a write to the same lane replaces it. Av_writelane_b32with an SGPR lane index, or any other write to that VGPR, clears them all.Tests: a hardware readback where a buffer descriptor is spilled to lanes 0..3 of a VGPR, numeric values are spilled to other lanes, then both are read back and the descriptor is used for a load, against a CPU reference.
Refused controls:
Mutants: refilling the wrong lane, and not clearing on a VALU write.
Measurement: the census and the run's requests, before and after, with the next refusal of the requests that move. The 6 spills that are not descriptor loads may not move.
AI-assisted.