shader: lower gfx1030 formatted UINT buffer stores #1326
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1333"
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-24T08:25:39Z.
Summary
buffer_store_format_x,_xy,_xyz, and_xyzwto consecutive DWORD writes in the rawu0binding.--output-formatdeclares the corresponding one- to four-channel 32-bit UINT descriptor with identity selectors. The opcode must write the entire declared texel.idxenand zero scalar offset. See the experiment for the caller's view and descriptor constraints.This follows the descriptor-format contract introduced for reads in #1297, which is already merged. The ISA reference is the AMD RDNA 2 Shader ISA, §8.1.4 and MUBUF opcodes 4–7.
Validation
Commit tested:
23ff04e2f0af14a4326098e11c74625d05de854a.compute_store_aot_mubuf_store_format_*fixtures register all four mnemonics as passing in the same CTest run. The selected run records 29 of 73 gfx1030 MUBUF forms. The coverage and documentation checks pass.26300.9974. WARP on Microsoft Basic Render Driver (10.0.26100.9818) and hardware on Intel Arc B390 (32.0.101.8509). The debug layer was unavailable on both. GPU comparisons cover translated DXIL.c5c5c5c5, actual89abcdeffor the shiftedxstore, and word 1, expected89abcdef, actual01234567,dcbafed0, and76543210for thexy,xyz, andxyzwchannel swaps respectively. Negative cases also require the expected rejection for a missing descriptor wait, pending data, a format-width mismatch, a record overrun, and overlapping stores.Passed on Ubuntu 22.04.5 with LLVM 15.0.7. This checks gfx1030 encoding and container translation.
git diff --checkpassed.git merge-tree --write-tree refs/remotes/origin/main HEADsucceeded against0f09ca936fe73399d8ffc8ec5e99541d6799ba1a.