shader: lower bounded runtime constant reads in compute stores #552
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/558"
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 RonLogic on 2026-11-22T11:59:52Z.
Change
Follow up on #539 by letting translated raw-UAV store kernels take runtime DWORD inputs. An explicit nonoverlapping descriptor table entry binds b0. Accept aligned immediate
s_buffer_load_dword{,x2,x4}within that 64-byte binding, with descriptor provenance and scalar waits checked before use. Preserve the existing fixed and indexed store paths and legacy test reference files.Verification
Built and tested at
24b186bon Windows 11 26300.9974 using x64 MSVC 19.52.37029.0. All six tests passed, with zero capability skips, on RTX 4070 (32.0.16.2124) and WARP (10.0.26100.9818). The D3D12 debug layer was enabled.The same compiled shader dispatched with two buffers of input constants. Both dispatches matched all 320 words, including untouched guard words. With the second upload and first reference, the first mismatch was word 4 (
80000000expected,7fc00000observed), and all eight written words differed. A truncated constants payload was rejected. The LLVM binary round-trip is covered by the existing Linux CI job and was not run locally because this Windows setup lacks LLVM 15 assembler tools.Evidence and follow-up
The regression uses original MIT-licensed gfx1013 source and independent word values. Dynamic scalar addresses, stores beyond the existing raw-UAV address profile, and original runtime descriptor layouts remain outside this profile. The README and experiments page document the optional binding.
AI-assisted: yes.