Skip to content

shader: support packed D16 compute array image stores - #2787

Merged
R0Y00 merged 1 commit into
R0Y00:mainfrom
xiaoqi72665:runtime-d16-array-uav
Nov 26, 2026
Merged

R0Y00 merged 1 commit into
R0Y00:mainfrom
xiaoqi72665:runtime-d16-array-uav

Conversation

@xiaoqi72665

Copy link
Copy Markdown
Contributor

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 (comment) .

Refs R0Y00#2742. Reuse the existing FP32 tracked array UAV binding (R0Y00#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.

@R0Y00 R0Y00 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
R0Y00 merged commit 564f9ba into R0Y00:main Nov 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants