xshader: accept the sampler heap base in rooted pixel shaders #157
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/157"
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 brcly/TuxBox. Originally posted by NathansDomainSolutions on 2026-11-25T09:50:25Z.
Summary
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