shader: support packed D16 compute array image stores #2787

Manually merged
github merged 1 commit from gh-pr/2787/head into gh-pr/2787/base 2026-11-27 01:22:45 +00:00
Owner

@⁠xiaoqi72665 on GitHub · 2026-11-26 09:04 UTC · original
xiaoqi72665:runtime-d16-array-uav → main · +136 −51 · 9 files · 1 commits · merged 2026-11-26 09:29 UTC

Summary

Refs #2742. Follow up #2744 and #2777 with only the remaining full-mask packed D16 compute 2D-array image_store proof. Reuse the existing 2D D16 two-VGPR widening and tracked tex2da array UAV binding. No manifest or production runtime changes; pixel array stores remain refused. #2755 is separate pixel work.

Verification

  • LLVM 15.0.7: source-built gfx1013 programs for relative layers 1 and 3, full/partial EXEC, match recorded bytes. Existing FP32 and D16 checks pass.
  • Windows 10 (19045.6466), DXC 1.8.2502.11: WARP and RX 7900 XT, Debug and Release, 32/32 each in the related regression selection, zero skips/failures.
  • Production slot-67/slot-14 dispatch into RGBA16_FLOAT, 32x8, six physical slices, FirstArraySlice=1/ArraySize=4. All four positive cases per adapter/config compare 6,144 raw halfwords with zero mismatches. Wrong-layer / dropped EXEC / swapped halves / swapped VGPRs / omitted store controls produce exactly 128/32/32/64/64 mismatches and match independent mutated CPU references. Incompatible plain 2D view refused before dispatch, 1,024 halfwords unchanged.
  • Debug layer unavailable locally (0x887A002D); no debug-layer-clean claim. Source-built fixtures only, no game data or title execution. AI-assisted.

Submission baseline

The original reviewed candidate was 7f50e55. Cherry-picked without changes onto d1b2be6 as 06574c9 (git range-diff equivalent). Fresh Debug and Release core regression selection: 15/15 each, no failures or skips (72.79 s / 73.39 s). LLVM 15.0.7 FP32, D16 and adjacent Mesh57 checks pass again. Existing 32/32 each receipts above refer to the original reviewed candidate. Git author: Buhe. Claim: #2742 .

**@⁠xiaoqi72665** on GitHub · 2026-11-26 09:04 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2787) `xiaoqi72665:runtime-d16-array-uav` → `main` · +136 −51 · 9 files · 1 commits · merged 2026-11-26 09:29 UTC ## Summary Refs #2742. Follow up #2744 and #2777 with only the remaining full-mask packed D16 **compute** 2D-array image_store proof. Reuse the existing 2D D16 two-VGPR widening and tracked tex2da array UAV binding. No manifest or production runtime changes; pixel array stores remain refused. #2755 is separate pixel work. ## Verification - LLVM 15.0.7: source-built gfx1013 programs for relative layers 1 and 3, full/partial EXEC, match recorded bytes. Existing FP32 and D16 checks pass. - Windows 10 (19045.6466), DXC 1.8.2502.11: WARP and RX 7900 XT, Debug and Release, 32/32 each in the related regression selection, zero skips/failures. - Production slot-67/slot-14 dispatch into RGBA16_FLOAT, 32x8, six physical slices, FirstArraySlice=1/ArraySize=4. All four positive cases per adapter/config compare 6,144 raw halfwords with zero mismatches. Wrong-layer / dropped EXEC / swapped halves / swapped VGPRs / omitted store controls produce exactly 128/32/32/64/64 mismatches and match independent mutated CPU references. Incompatible plain 2D view refused before dispatch, 1,024 halfwords unchanged. - Debug layer unavailable locally (0x887A002D); no debug-layer-clean claim. Source-built fixtures only, no game data or title execution. AI-assisted. ## Submission baseline The original reviewed candidate was 7f50e55. Cherry-picked without changes onto d1b2be6 as 06574c9 (git range-diff equivalent). Fresh Debug and Release core regression selection: 15/15 each, no failures or skips (72.79 s / 73.39 s). LLVM 15.0.7 FP32, D16 and adjacent Mesh57 checks pass again. Existing 32/32 each receipts above refer to the original reviewed candidate. Git author: Buhe. Claim: https://git.gtahub.st/github/R0Y00--Xbox2Windows/issues/2742 .
Refs #2742. Reuse the existing FP32 tracked array UAV binding (#2777) and 2D D16 widening; retain pixel array and partial-mask refusals. Verify source-built ISA fixtures with LLVM 15 and production slot-67/slot-14 dispatch on WARP and RX 7900 XT. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 01:22:44 +00:00
github manually merged commit 06574c9dd2 into gh-pr/2787/base 2026-11-27 01:22:45 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-26 09:29 UTC · original · approved these changes

Independent review of 06574c9d. Windows 11 build 26200, MSVC Debug and Release, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656 with debug enabled. All 12 selected CTests passed per configuration, zero skips, using ctest --preset <dev|release> --no-tests=error -j 1 -R '^startup_(compute_dispatch_(array.*|texture_(warp|hardware))|compute_image_store.*)$' -V. The d16 runtime dispatch verified each of the six physical slices (6,144 halfwords) with nonzero FirstArraySlice, both relative layers and both EXEC shapes. The malformed layer and EXEC controls differed at their expected counts, and a plain 2D UAV was refused with all 1,024 halfwords unchanged. The existing FP32 array and 2D store checks also ran. Pixel array publication remains outside this source-built proof.

**@⁠R0Y00** on GitHub · 2026-11-26 09:29 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2787#pullrequestreview-6071563207) · **approved these changes** Independent review of `06574c9d`. Windows 11 build 26200, MSVC Debug and Release, WARP 10.0.26100.9818 and RTX 4060 Laptop 32.0.16.1656 with debug enabled. All 12 selected CTests passed per configuration, zero skips, using `ctest --preset <dev|release> --no-tests=error -j 1 -R '^startup_(compute_dispatch_(array.*|texture_(warp|hardware))|compute_image_store.*)$' -V`. The d16 runtime dispatch verified each of the six physical slices (6,144 halfwords) with nonzero FirstArraySlice, both relative layers and both EXEC shapes. The malformed layer and EXEC controls differed at their expected counts, and a plain 2D UAV was refused with all 1,024 halfwords unchanged. The existing FP32 array and 2D store checks also ran. Pixel array publication remains outside this source-built proof.
This discussion has been locked. Commenting is limited to contributors.
No description provided.