shader: lower startup compute formatted buffer reads #2398
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!2398
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2398/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?
@R0Y00 on GitHub · 2026-11-25 15:12 UTC · original
R0Y00:codex/startup-compute-formatted-load→main· +135 −18 · 3 files · 1 commits · merged 2026-11-25 16:23 UTCRefs #870.
The offline startup compute translator lowers all four MUBUF
buffer_load_format_*widths using the existing FORMAT and DST_SEL decode. The manifest identifies the source SRV for descriptor word 3 and any indexed byte stride. The dispatch caller must bind and validate those values from the same native table descriptor. The shared decode also returns integer 1 for selector 1 in format 27 (16_16_UINT).On Windows build 26200.9974 with the debug layer enabled, the new UINT16 and UNORM8 cases matched all 320 words each on WARP 10.0.26100.9818 and RTX 4060 Laptop driver 32.0.16.1656. The byte-offset, selector and integer-one mutants mismatched 32, 8 and 16 words respectively on both adapters. Both reported zero debug-layer errors and warnings.
All three CTest entries passed at
1e4e1451with no skips. The existing graphics format regressions also passed on both adapters. LLVM 15 reassembled the source-built compute fixtures byte for byte.In a separate local A/B replay on the same five requests, all five advanced past the formatted-load refusal. Two then refused an EXEC save inside an execz block, two refused a readfirstlane without a uniform source, and one refused a lane write inside an execz block. Neither side produced a complete shader.
AI-assisted. Tests listed above ran locally.
@KelboLive on GitHub · 2026-11-25 16:08 UTC · original
APPROVED. Lowers startup compute formatted buffer reads.