shader: expand packed D16 XY stores into FLOAT2 heap views #2361
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!2361
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2361/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@RavenCurseBurg on GitHub · 2026-11-25 13:39 UTC · original
RavenCurseBurg:compute/heap-d16-float2→main· +86 −28 · 3 files · 1 commits · merged 2026-11-25 13:49 UTCRefs #2022 (item B). Extends the stand-alone compute translator after the four-component and scalar packed-half stores in #2230 and #2340.
buffer_store_format_d16_xyconsumes one VGPR and requires an identityBUF_FMT_32_32_FLOATdescriptor (format 64). Its low and high halves become two binary32 words in X/Y order. Both words must fit in the stride and declared output extent. A stopped or out-of-range view leaves every guard intact. The compiler uses the decoded component count to select the HLSL helper. The changed CLI help lists the supported view widths.Validation on Windows 11 build 26100.9711 with DXC 1.9.2609 and Agility SDK 1.620.2:
python -B tests/compute_heap_store_check.py draw <dxc> <offscreen_check> <warp|hardware>on WARP 10.0.26100.9711, RTX 4060 (32.0.15.9579) and Intel UHD 770 (32.0.101.5973). Each adapter passed 17 FLOAT2 dispatches comparing all 320 words, including negative zero, a binary16 subnormal, the final complete pair, a partial pair and wrong formats. Each rejected 11 compiled shader mutations. Swapped halves first failed at word 4 (3f800000→40400000), duplicated X at word 5 (40400000→3f800000), and the weakened extent at guard word 127 (c5c5c5c5→3f800000). The existing UINT4, FLOAT4 and FLOAT1 fixtures passed on all three. Local D3D12 debug layer unavailable.python -B tests/compute_heap_store_check.py binary <llvm-mc> <llvm-objcopy> <libLLVM>passed for all four programs, using LLVM 15.0.7's Clang integrated assembler as the gfx1013 object writer, llvm-objcopy and LLVM-C. Each goes through disassembly, a source-built container and the public CLI. The native FLOAT2 fixture SHA-256 isa5562f3c4650969c26bee9cde075c8eb83251f7912fa03c030725d11006e0447.python -B tests/compute_heap_store_check.py controls,python -B tests/compute_heap_view_check.py controls, the existing compute-store host controls, docs links, bidirectional controls andgit diff --checkpassed.Agent environment: Codex + GPT-6.2 Astra xhigh.
@RavenCurseBurg on GitHub · 2026-11-25 13:42 UTC · original
The Windows Server 2025 WARP run pinned to
85e04538passed both selected CTests without skips. It then repeated the FLOAT2 fixture with the D3D12 debug layer enabled and checked the child output for each of the 17 positive dispatches: zero debug warnings and errors. All 11 shader mutations produced the expected readback failures.@tedin7 on GitHub · 2026-11-25 13:45 UTC · original · reviewed
Review of head
85e045382f(files: docs/experiments.md, tests/compute_heap_store_check.py, tools/compute_store_aot.py).Findings: 0 P1, 0 P2.
Commands executed locally (Linux):
AI-assisted; commands listed were executed locally.