shader: lower packed gfx1030 2D image stores #1405
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!1405
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1405/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 10:42 UTC · original
stan495:codex/gfx1030-mimg-packed-stores→main· +142 −70 · 7 files · 1 commits · merged 2026-11-24 10:59 UTCScope
Extend the gfx1030 2D compute image UAV path from #1344 with
image_store_pckandimage_store_mip_pck. Use a linearR8G8B8A8_UINTview atu0. Each enabled channel consumes one VGPR in DMASK order and writes its low byte. The store overwrites the entire texel and zeroes omitted channels.The caller supplies in-range, distinct coordinates and a base-mip-zero descriptor with identity channels. The translator accepts one image store per shader, 32-bit or
a16addresses, and a constant explicit mip that matches the bound UAV view. The format and opcode must agree. Rejection cases cover unsupported formats and flags, a malformed address tuple, an unresolved descriptor wait, a second store, and dynamic or mismatched mips.Validation
Tested
b898d3186bd8a6b285c50616272470cb6a895e52on Windows 11 build 26300.9974. WARP used Microsoft Basic Render Driver 10.0.26100.9818. The physical adapter was Intel Arc B390 with driver 32.0.101.8509. Both reporteddebug_layer=unavailable.CTest reported 65 passed, 0 failed, and 0 skipped. Both packed-store tests recorded both new gfx1030 MIMG forms against the same passing JUnit run. Each backend passed 18 RGBA8 variants covering three mip levels, two address widths, DMASKs
0x1,0xaand0xf, and one or two groups. The CPU reference checks all 336 packed texels across three mips against the readback, including adjacent texels and unmodified mips.Both adapters detected these executable mutations at mip 0, word 0.
e400720024002400e4007200e40072efa89b8e81e4ab7239The LLVM 15 regression passed. All 18 packed cases round-tripped through real gfx1030 assembly and disassembly and the synthetic-container CLI. The CLI HLSL matched the text path. For
image_store_pck_0_1, DXC compiled the HLSL emitted by the container CLI and both adapters passed all 336 comparisons. The GPU fixtures executed translated desktop DXIL. Native execution was outside this test matrix.@tedin7 on GitHub · 2026-11-24 10:54 UTC · original · reviewed
Reviewed commit
b898d3186bd8a6b285c50616272470cb6a895e52:tools/compute_store_aot.pyto lowerimage_store_pckandimage_store_mip_pckforR8G8B8A8_UINTby masking enabled channels with0xffu(while rejecting_pck_sgnand format/opcode mismatches), updatescheck_compute_texture_store_fileintests/compute_check.cppandtests/offscreen_check.cppto handleR8G8B8A8_UINTviatexture_rgba8_flag, and addsmimg_store_cases(packed=True),mimg_store_controls(packed=True), anddraw-mimg-packed-store(withwrong byte,unmasked channel, andwrong UAV mipnegative controls) intests/compute_store_check.py, plusCMakeLists.txt,docs/experiments.md, andREADME.md.git diff --checkclean;tests/docs_links_check.py(16 Markdown files, 318 links),tests/bidi_controls_check.py(1180 files), andtests/compute_store_check.py binary llvm-mc-19 llvm-objcopy-19 /usr/lib/llvm-19/lib/libLLVM-19.soall passed.--preset dev,offscreen_check): 2/2 passed (compute_store_aot_mimg_store_warp,compute_store_aot_mimg_store_packed_warp)./O2(--preset release,offscreen_check): 2/2 passed.