shader: lower indexed gfx1030 tbuffer_load_format_x #1169
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1176"
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-24T02:31:43Z.
Scope
Lower indexed gfx1030
tbuffer_load_format_xwithBUF_FMT_32_UINT, a zero scalar offset, and an aligned instruction offset within the bound source stride. Require a ready, read-only source descriptor andvmcnt(0)before the result is consumed. Assumes a valid unswizzled native binding and in-range accesses; no general format conversion or native bounds emulation is claimed.Validation
Tested
d8fe7a699a7b3d4f7452de457dc6f2f982c0f6aaon Windows 11 25H2 build 26200.9974 with the D3D12 debug layer enabled. RX 7900 XTX driver 32.0.32029.2010; 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. The new fixture checks all 320 words after one and three groups. Changing the source stride from 12 to 8 produced the expected first mismatch on both adapters:word=3 expected=8b12f6b5 actual=8b0ee304.python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1: passed on LLVM 15.0.7. The new case also verifies CLI output after assembling and decoding the source-built 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.xmlreported one gfx1030 MTBUF form covered by this run.Desktop DXIL is compared to the CPU reference; the fixture does not run the original ISA on a native gfx1030 target.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T02:40:22Z.
Review: COMMENTED
Reviewed at commit
d8fe7a699a7b3d4f7452de457dc6f2f982c0f6aa.tools/compute_store_aot.pyextends the read matcher togfx1030tbuffer_load_format_xwithformat:[BUF_FMT_32_UINT]andidxen(withoutoffen), reusingsource_stridebounds validation,vmcnt(0)tracking, andByteAddressBuffer.Loadlowering, and tightens descriptor lane-order checking from asetto an orderedtuple.tests/compute_store_check.pyadds negative/diagnostic controls and asource_stride=8mismatch case.python3 tests/docs_links_check.py,python3 tests/bidi_controls_check.py,python3 tests/gpu_report_format_check.py,python3 tests/xgameruntime_table_check.pypython3 -m py_compile tools/compute_store_aot.py tests/compute_store_check.pypython3 tests/rdna2_tools_check.py(110 tests OK, 10 skipped)mtbuf_load_controls()andpython3 -B tests/compute_store_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM-19.socompute_store_aot_mtbuf_load_{warp,hardware}(4 Windows CI checks currently pending).