shader: lower startup compute formatted buffer reads #2390
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2398"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-25T15:12:56Z.
Refs #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.
Imported from R0Y00/Xbox2Windows. Originally posted by KelboLive on 2026-11-25T16:08:09Z.
APPROVED. Lowers startup compute formatted buffer reads.