shader: support packed D16 compute array image stores #2779

Merged
xiaoqi72665 merged 1 commit from upstream-pr/2787 into main 2026-11-26 09:29:32 +00:00
xiaoqi72665 commented 2026-11-26 09:04:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by xiaoqi72665 on 2026-11-26T09:04:33Z.


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://github.com/R0Y00/Xbox2Windows/issues/2742#issuecomment-7186995677 .

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6623176461 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2787). Originally posted by [xiaoqi72665](https://github.com/xiaoqi72665) on 2026-11-26T09:04:33Z. --- ## 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://github.com/R0Y00/Xbox2Windows/issues/2742#issuecomment-7186995677 .
upstream-sync closed this pull request 2026-11-26 10:04:00 +00:00
R0Y00 commented 2026-11-26 10:04:00 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T09:29:25Z.

Review: APPROVED


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6071563207 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2787#pullrequestreview-6071563207). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T09:29:25Z. **Review:** APPROVED --- 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2779
No description provided.