Skip to content

shader: expand packed D16 XYZ stores into FLOAT3 heap views - #2372

Merged
R0Y00 merged 1 commit into
R0Y00:mainfrom
RavenCurseBurg:shader/heap-d16-float3
Nov 25, 2026
Merged

R0Y00 merged 1 commit into
R0Y00:mainfrom
RavenCurseBurg:shader/heap-d16-float3

Conversation

@RavenCurseBurg

@RavenCurseBurg RavenCurseBurg commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Refs #2022, item B. This completes the packed D16 component widths in the stand-alone heap-store experiment after #2230, #2340 and #2361.

A gfx1013 buffer_store_format_d16_xyz draws X/Y from the first VGPR and Z from the low half of the second. The identity format-74 view (BUF_FMT_32_32_32_FLOAT) expands the three binary16 components into twelve output bytes. The emitted Store3 leaves the next dword alone. The same record-count, alignment, lifetime, stride and output-extent checks apply. AMD RDNA 2 format table · LLVM 15 buffer formats

Validation at fa712d5 on Windows 11 build 26100.9711:

  • python -B tests/compute_heap_store_check.py draw <dxc> <offscreen_check> <warp|hardware> passed for all five programs on WARP (10.0.26100.9711), RTX 4060 (32.0.15.9579), and Intel UHD 770 (32.0.101.5973). DXC 1.9.2609 and Agility SDK 1.620.2. For FLOAT3 each backend compared 320 words in 17 cases, including signed zero, a subnormal, two independent poisons for the unused half, the last complete triplet, partial output and incorrect view formats. All 11 compiled shader mutations failed readback. Reading the unused half failed at word 6, overwriting a fourth word at guard 7, and permitting an eight-byte tail at guard 126. Local debug layer unavailable. The pinned Windows Server WARP job passed both focused CTests without skips, then confirmed an enabled D3D12 debug layer and zero debug warnings/errors for each of the 17 positive FLOAT3 dispatches. Job log
  • python -B tests/compute_heap_store_check.py binary <llvm-mc> <llvm-objcopy> <libLLVM> passed for all five inputs using LLVM 15.0.7 (Clang integrated assembler as the object writer, llvm-objcopy and LLVM-C). Disassembled instructions and source-built DXBC containers through the public CLI produced the expected HLSL. Native FLOAT3 fixture SHA-256: 035a58e1833030efd8c3e2e0da41bf6666975906695230d4d467f0a6e0219725.
  • The heap-store and heap-load host controls, compute-store host controls, docs link scan (459 links), bidirectional controls scan and git diff --check passed.

Agent environment: Codex + GPT-6.2 Astra xhigh.

@R0Y00
R0Y00 merged commit c7f38d0 into R0Y00:main Nov 25, 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