shader: lower indexed gfx1030 UINT typed-buffer stores #1179
No reviewers
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!1179
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1179/head"
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?
@stan495 on GitHub · 2026-11-24 02:38 UTC · original
stan495:codex/gfx1030-tbuffer-store-format→main· +124 −12 · 5 files · 1 commits · merged 2026-11-24 03:25 UTCScope
Lower gfx1030
tbuffer_store_format_{x,xy,xyz,xyzw}with matching 32-bit UINT components to one to four raw UAV DWORD writes. Requireidxen, a proven dispatch-thread index, zero scalar offset, a ready UAV descriptor, and a DWORD-aligned span contained in its bound record. The raw store overlap check also applies across typed and raw stores. This does not emulate native bounds checks or other format conversions.Validation
Tested
fe4fab25f78b3447a23ea254fa66cd1c3e61549don Windows 11 25H2 build 26200.9974 with the D3D12 debug layer enabled; RX 7900 XTX driver 32.0.32029.2010 and Microsoft WARP 10.0.26100.9818.cmake --preset dev -DINTAKE_PYTHON=<dev-python>andcmake --build --preset dev --target offscreen_check: passed.ctest --preset dev --no-tests=error -R '^compute_store_aot_' -V: 24 passed, 0 failed, 0 skipped. Each width checks all 320 words after one and two groups. Moving the write one DWORD earlier caused the expected first mismatch on both adapters for every width:word=0 expected=c5c5c5c5 actual=01234567.python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1: passed using LLVM 15.0.7. All four forms assembled, decoded, and lowered to the same HLSL as the text fixture.python -B tests/form_coverage_check.py,python -B tests/docs_links_check.py,python -B tests/bidi_controls_check.py: passed.python -B tools/form_coverage.py out/results.xmlrecorded four gfx1030 MTBUF forms in this run.The GPU runs execute translated desktop DXIL, not the original gfx1030 instructions.
@tedin7 on GitHub · 2026-11-24 02:51 UTC · original · reviewed
Review of
fe4fab25f78b3447a23ea254fa66cd1c3e61549d(Linux):tools/compute_store_aot.py: cleanly extends the raw UAV store matcher totbuffer_store_format_{x,xy,xyz,xyzw}ongfx1030withidxen(nooffen), matchingBUF_FMT_(32_){1,4}UINT, DWORD-aligned span withinstride, and shared overlap checks.tests/compute_store_check.py:mtbuf_store_cases()andmtbuf_store_draw()exercise all 4 widths, negative controls (target,offen, format,s_waitcnt, tightstride, overlap, shiftedoffset), andFORM_COVERAGE_RECORD.py_compileontools/compute_store_aot.pyandtests/compute_store_check.py,compute_store_check.controls()+mtbuf_store_cases()lowering/negative checks,docs_links_check.py(257 links),bidi_controls_check.py(956 files),gpu_report_format_check.py(10 tests),xgameruntime_table_check.py, andrdna2_tools_check.py(110 tests, 10 skipped). (form_coverage_check.pywas blocked here by missingiced_x86.)llvm-mc-15binary assembly and Windows DXC/WARP/hardware execution rely on CI (4 checks currently pending).