shader: lower typed gfx1030 2D image stores #1337
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1344"
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:43:23Z.
Scope
Lower gfx1030
image_storeandimage_store_mipfor linearR32G32B32A32_UINT2D images. Both opcodes write one full texel atu0and zero channels omitted by DMASK. The translator accepts one store per shader and both 32-bit anda16address forms. Use--image-uav-mipto bind a single view. An explicit native mip must be a compile-time constant that matches the view. Coordinates must be in range and each invocation must write a distinct texel.This extends the gfx1030 compute MIMG path from #1310 and #1321.
Validation
Tested
382d1db2201cec10f17bac580372994e1eb98246on Windows 11 build 26300.9974 with Intel Arc B390 (driver 32.0.101.8509) and WARP (Microsoft Basic Render Driver, driver 10.0.26100.9818). Both reporteddebug_layer=unavailable.CTest reported 57 passed, 0 failed and 0 skipped. Each backend executed 18 typed write variants using mip levels 0, 1 and 2, two address widths, DMASKs
0x1,0xa,0xf, and dispatches of one or two groups. The independent CPU reference compared all 1,344 channel values across three mips, including untouched texels. The masked-channel mutation first differed atmip=0 word=0 expected=00000000 actual=deadbeef. The wrong UAV mip mutation first differed atmip=0 word=0 expected=c0000000 actual=11000000. The tests reject dynamic or mismatched mip levels, unexpected flags, a second image store, and invalid descriptor bindings and waits. The JUnit-backed gfx1030 compute coverage includes both new MIMG mnemonics. The same run covered formatted MUBUF stores and the upstream D16 load and atomic reduction cases from #1343, #1346 and #1354.LLVM 15 assembled and disassembled all 18 write cases. The synthetic container CLI emitted the same HLSL as the text path. The GPU tests ran the translated desktop DXIL.
Imported from R0Y00/Xbox2Windows. Originally posted by tablefrogpillow on 2026-11-24T10:08:19Z.
Ran the PR's validation subset on AMD hardware, which the
Validationsection (Intel Arc + WARP) didn't cover.Host: AMD Radeon RX 7900 GRE (Navi31, RDNA3), vendor
1002device744c, driver31.0.22030.2, Windows 11 26300, D3D12 (debug_layer=unavailable). Builtoffscreen_checkat head382d1db.ctest --preset dev -R '^(compute_store_aot_|compute_root_|compute_tables_|offscreen_capability_table_self_test$)' -j 1→ 57/57 passed. The gfx1030 image-store cases pass —compute_store_aot_mimg_store_hardwareandcompute_store_aot_mimg_mip_hardware,compared_words=1344 mismatches=0across mips 0/1/2 and 1–2 groups — with the built-in controls catching the mutations (masked-channel →mip=0 word=0 expected=00000000 actual=deadbeef; wrong-UAV-mip →expected=c0000000 actual=11000000).Note for single-GPU hosts: with
-j 2(as in the PR command) every*_hardwaretest spuriously fails here — concurrent D3D12 submissions to one adapter contend;-j 1is clean. Single-gen RDNA3 datapoint. AI-assisted (Claude).Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T10:16:05Z.
I kept your updated image-store revision and integrated the current raw reductions before pushing
f236a41b. The image-UAV path now explicitly rejects both 32-bit and 64-bit raw atomics, with controls for both. I reran typed image stores on RTX 4060 Laptop and WARP after the sync. The earlier integration also passed the 64-bit atomic and formatted D16 readback regressions on both adapters. CI is checking the updated head.