shader: lower gfx1030 formatted D16 UINT buffer loads #1336
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1343"
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:39:21Z.
Summary
buffer_load_format_d16_x,_xy,_xyz, and_xyzwfor a caller-declaredBUF_FMT_16_16_16_16_UINTsource descriptor with identity XYZW selectors. The read stays within one aligned eight-byte texel in the source record.Validation
Commit tested
bb90a3d010f4a923afbd85c4d2e4f7b34e3ca139.46 passed, 0 failed, 0 capability skips. Both
compute_store_aot_mubuf_load_format_d16_*fixtures register all four mnemonics as passing in the same run. The selected run records 29 of 73 gfx1030 MUBUF forms. The coverage and documentation checks pass.Windows build
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.The preceding-texel mutation reports the first difference at word 1 on both adapters. The
xform expects0000cf53and produces0000a7f1. The other three forms expect8b0acf53and produce8b02a7f1. Rejection fixtures cover missing waits, partial-VGPR whole-word use, bad destination spans, descriptor format, alignment and record overrun.Passed on Ubuntu 22.04.5 with LLVM 15.0.7.
The formatted writes from #1333 and these reads also passed both semantic fixture modes on WARP and hardware in the combined local merge tree
a58ba5ba12624ab7fb6fa265407357c1e61d9c50.git diff --checkpassed.git merge-tree --write-tree refs/remotes/origin/main HEADsucceeded againstdde8afd2e5102a5b5feaa0bd92cadffa2b2e7495.Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T08:56:53Z.
Review: COMMENTED
Technical peer review at commit
bb90a3d010f4a923afbd85c4d2e4f7b34e3ca139(LGTM, no blocking findings):Code audit:
tools/compute_store_aot.py: Extendsbuffer_load_format_*tobuffer_load_format_d16_{x,xy,xyz,xyzw}withMUBUF_SOURCE_TEXELSmappingBUF_FMT_32_32_32_32_UINT(16-byte texel) andBUF_FMT_16_16_16_16_UINT(8-byte texel). Validatescpu == "gfx1030",idxen-only addressing, non-nullsource_formatmatchingexpected, 8-byte offset alignment and element bounds,lgkmcnt(0)descriptor readiness,vmcnt(0)pending-register tracking, and marks the final VGPR of odd-componentx/xyzloads assource_low16so only explicit0xffffmasking is accepted.tests/compute_store_check.py,CMakeLists.txt,README.md,docs/experiments.md: Addsmubuf_format_d16_controls(negative controls for address mode, soffset,tfe, offset alignment/bounds, UAV read, destination width/range,source_format/source_stride, waitcnt, andsource_low16masking),mubuf_format_d16_draw(including wrong-texel negative control), andcompute_store_aot_mubuf_load_format_d16_{warp,hardware}; updates adjacentmubuf_subword_controlsandmubuf_format_controlsdiagnostics. Title-neutral.Checks:
tests/docs_links_check.py(16 Markdown files, 295 links) passed;tests/bidi_controls_check.py(1110 files) passed;tests/compute_store_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM-19.sopassed;tests/rdna2_tools_check.py(138 tests, 18 skipped) passed;tests/form_coverage_check.pypassed;git diff --checkclean.--preset dev,offscreen_check):compute_store_aot_mubuf_format_warp(3.11s),compute_store_aot_mubuf_load_format_d16_warp(3.19s),compute_store_aot_mubuf_d16_warp(3.67s) 3/3 passed./O2(--preset release,offscreen_check):compute_store_aot_mubuf_format_warp(3.10s),compute_store_aot_mubuf_load_format_d16_warp(3.13s),compute_store_aot_mubuf_d16_warp(3.61s) 3/3 passed.