xshader: accept the sampler heap base in rooted pixel shaders #157
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/brcly--TuxBox!157
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/157/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?
@NathansDomainSolutions on GitHub · 2026-11-25 09:50 UTC · original
NathansDomainSolutions:fix/rooted-pixel-sampler-heap→main· +4 −1 · 1 files · 1 commits · merged 2026-11-25 09:55 UTCSummary
A pixel shader that indexes the descriptor heaps receives the sampler heap base in the user SGPR named by FSSM user-data class 6 (the resource heap is class 5).
pixel_heap_baserefused class 6 whenever a root signature was present. Fixed-offset reads from the sampler heap (e.g.s16 + 0x430) then fell through to the root-table lookup, stayed unmapped, and the rooted translation was refused withunmapped descriptor at sN + 0x_ in a heap-indexing pixel shader.In ProjectScarlett this mostly hits pixel stages of mesh pipelines. When the rooted translation is refused, slot 86 falls back to the root-less pixel translation, whose private space1 bindings (e.g.
b21 space1) the mesh pipeline's root doesn't provide. vkd3d-proton rejects the pipeline withvkd3d result -3, and the draw is lost.This PR accepts class 6 when the root sets
SAMPLER_HEAP_DIRECTLY_INDEXED(0x800), as class 5 already requiresCBV_SRV_UAV_HEAP_DIRECTLY_INDEXED(0x400). An example root that triggers it: flags0xc00, FSSM user records[5, 0, 1, 0, 0xf](resource heap in s15) and[6, 0, 1, 0, 0x10](sampler heap in s16).Checks
-O0above 128 KiB).cargo testfor tools/shader-compiler (x86_64-unknown-linux-gnu): all pass.AI-assisted: written with Claude Code and reviewed by me.
🤖 Generated with Claude Code