startup: pixel-stage raw buffer loads through the structured-to-raw descriptor conversion are refused as "modified descriptor" since #2910 #3064
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#3064
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@SimSalabimse on GitHub · 2026-11-27 13:23 UTC · original
Since #2910 (
Stage.load_descriptor()), a non-indexed MUBUF load in a pixel stage through a descriptor that went through the standard structured-to-raw conversion is refused withbuffer load through a modified descriptor:s_and_b32 sX, w1, 0xc000ffff(stride 0)s_mul_i32 sY, w2, <stride from s_bfe_u32 w1, 0xe0010>(byte count)s_and_b32 sZ, w3, 0xcfffffffthens_or_b32 sZ, sZ, 0x30000000(OOB_SELECT raw)load_descriptor()already accepts this shape (stride0_ok/raw_conversion_ok), butraw_descriptor_alu()is only consulted forkind in ('cs', 'vs'). In a pixel stage the same edits take the generic path, which marks the key inother_modified, so the load is refused even when the conversion is exact. Compute stores (#2546) and vertex stores (#2570) got this conversion earlier. The pixel stage is the remaining gap.Local capture at main
35f7197e(counts and instruction shapes only; the inputs are private and not attached):'ps'is added to theraw_descriptor_alukind gate, 257 pass the load check. 36 are still refused because the words the load reads form only part of the conversion (stride 0 and OOB raw, with word 2 not the scaled byte count).wave reduction in a program with branches(107), pixel DPP outside the entry prefix (45) and others. This fix moves a gate that every one of those later fixes has to pass first.Claiming: I'll make the pixel-stage fix in
tools/startup/gfx2hlsl.py:NUM_RECORDS * stride.idxenloads refused under their current messages.Tests (source-built only):
buffer_load_dword ... offen. A draw readback is compared against a CPU model, on WARP and on a hardware adapter.idxenload.'ps'from the gate must turn the fixture red.ctest --preset dev --no-tests=error -j 1on the affectedstartup_gfx2hlsl_*entries.AI-Assisted