direct compute: vcc_lo / vcc_hi as wave32 SMEM offsets and destinations #3173
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#3173
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 20:16 UTC · original
Part of #2935 (instruction coverage). Target branch
main. I am taking it.Gap. In wave32,
vcc_lo(s106) andvcc_hi(s107) are ordinary scalar data. Captured wave32 programs use them as the SGPR offset ofs_load_dwordx8ands_buffer_load_dword(x1, x2, x4, x16), and load intovcc_lo/vcc_hi. Direct compute refuses both with "unsupported scalar memory addressing".Measured on a local capture of 2,689 compute requests (counts and instruction shape only), with
compile_dxil --jobs 8 gfx1013-direct-cs@36 --requestsonmain6057071b(the commits since then do not touchgfx1013_compute_native.cpporgfx1013_direct_compute.inl):v_cmp_classmask written tovcc_hi, which #3159 handles.Plan:
The change adds the same
wave64parameter todecode()as #3159, so whichever lands second gets a small textual conflict that keeps both.Tests: a hardware readback of loads with
vcc_loandvcc_hioffsets and a load intovcc_hi, plus compile controls for the refusals.AI-assisted.