shader: lower indexed gfx1030 multichannel UINT typed-buffer loads #1199
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1206"
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-24T03:33:20Z.
Scope
Add xy, xyz and xyzw with matching 32-bit UINT formats. Wait on the full destination range and require all components to fit in one record.
Follow-up to R0Y00/Xbox2Windows#1176, which has merged.
Validation
Tested
de3b1b266787fd0858ce6537d5d808feb79c090eon Windows 11 25H2 build 26200.9974 with the D3D12 debug layer enabled. The adapters were 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_checkpassed.ctest --preset dev --no-tests=error -R '^compute_store_aot_(mtbuf_load|guard_read)_' -Vreported 4 passes, zero failures and zero skips. Moving the source load one DWORD earlier changes word 1 from 8b06bba2 to 8b02a7f1.python3 -B tests/compute_store_check.py binary llvm-mc-15 llvm-objcopy-15 libLLVM-15.so.1passed on LLVM 15.0.7.python -B tests/form_coverage_check.py,python -B tests/docs_links_check.pyandpython -B tests/bidi_controls_check.pypassed.python -B tools/form_coverage.py out/results.xmlrecorded the new instruction forms from passing readbacks.The GPU measurements execute translated desktop DXIL against CPU references.
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T03:45:29Z.
Review: COMMENTED
Reviewed
de3b1b26on Linux (Windows build and D3D12ctestexecution were not run locally).Diff audit
tools/compute_store_aot.py: extendstbuffer_load_format_{x,xy,xyz,xyzw}lowering (cpu == "gfx1030",idxen, nooffen).BUF_FMT_{32,32_32,32_32_32,32_32_32_32}_UINTformat (Unsupported typed buffer read format), contiguous destination VGPR rangev[dst:dst+count-1]withindst + count <= 256(Unverified buffer read destination), andoffset + 4 * count <= source_stride(Read leaves its source element).loading[reg]for allcountdestination VGPRs so none can be consumed befores_waitcnt vmcnt(0).tests/compute_store_check.py: addsmtbuf_load_{xy,xyz,xyzw}cases, negative controls (destination range, format, pre-wait read, stride overflow), and offset-removal mutant check.README.mdanddocs/experiments.md: consistent and title-neutral. No conflicts with #1207 (tbuffer_store_format_d16_*); #1211 is stacked on this commit.Linux checks (
/root/.local/share/x2w-rev-venv/bin/python -B)tests/compute_store_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM-19.so: passed (0 failures)tests/form_coverage_check.py: passedtests/docs_links_check.py: passed (15 Markdown files, 268 links)tests/bidi_controls_check.py: passed (977 files)offscreen_checkandctest -R '^compute_store_aot_(mtbuf_load|guard_read)_'not run locally.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T04:31:29Z.
Windows Server 2025 retest at
de3b1b26(Windows Server 2025 Build 26100, MSVC 14.44.35207, AMD Ryzen 5 PRO 5650U, WARP):Debug (
devpreset)Commands:
Results: 26 passed, 0 failed, 0 skipped (Total Test time:
156.18 sec, includingcompute_store_aot_mtbuf_load_hardwareandcompute_store_aot_mtbuf_load_warp).Release (
/O2,releasepreset)Commands:
Results: 26 passed, 0 failed, 0 skipped (Total Test time:
161.48 sec, includingcompute_store_aot_mtbuf_load_hardware(3.87 sec) andcompute_store_aot_mtbuf_load_warp(4.05 sec)).