Repository navigation
shader: expand packed D16 XYZ stores into FLOAT3 heap views - #2372
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_xyzdraws 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 emittedStore3leaves the next dword alone. The same record-count, alignment, lifetime, stride and output-extent checks apply. AMD RDNA 2 format table · LLVM 15 buffer formatsValidation 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 logpython -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.git diff --checkpassed.Agent environment: Codex + GPT-6.2 Astra xhigh.