d3d12: pair a depth-only stream's vertex stage with the pipeline root #597
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/597"
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 NickStallman on 2026-11-30T19:33:33Z.
Refs #533. Not yet run in a title.
The block that translates a raster stream against its pipeline root only runs when the stream has both a vertex and a pixel stage. A depth-only stream has no pixel stage, so its vertex shader keeps the root-less translation, whose registers come from the program's own reflection. Where the root names them differently the host refuses the pipeline (
dxil-spirv: Failed to remap SRV 3:9) and the title gets a stand-in that draws nothing. In ProjectScarlett that is 11 of the 32 rejected pipelines our log names (it stops at 32), in every run, including the two cascade-shadow depth programs.The pairing now also takes a vertex stage alone. With no pixel stage there are no pixel bindings, samplers, stencil export or heap stores to account for, and the reflected root carries the vertex stage's bindings, including a root SRV under the register the program names. A stream with no pixel stage takes the root only when its vertex stage has a translation against it; otherwise it is built exactly as before.
Evidence so far
New Lanes scenario
raster-depth-only(inlanes-raster-tables): a stream with a console vertex program and no pixel program under a two-table root; the vertex program reads one value through table 1 and draws at that depth into a D32 target cleared to 1.0 (0.25 from the right view, 0.75 from any other). With this change it passes on both cards (RTX 509010de:2b85, AMD iGPU1002:13c0,lanes-raster-tables14 of 14). The control (main plus only the scenario) fails exactly that gate on both cards.Rebased onto
9a19c767(7a26e22a). Fullpython tuxbox.py check(GE-Proton11-15): RTX 5090 (10de:2b85) 210 pass and AMD iGPU (1002:13c0) 210 pass; the one failure on each islanes-selftest-texture-publication(#625). Alanes-raster-tablestimeout in the first 5090 run did not repeat when run alone (13 of 13).Translation: the 11 rejected vertex-only shaders against their captured pipeline roots, with this commit's translator: 10 translate, including both cascade-shadow programs. The eleventh is refused ("constant-buffer MUBUF form unsupported") and keeps today's stand-in. The roots were captured from one run (three roots cover the 11 streams).
Unit tests: a vertex stage alone names its root SRV as register 9, space 3 under a root that calls it t4, space 3 (dxbc test). Two d3d12 tests (the rename, and the bindings of a stream without a pixel stage): they typecheck in the crate; they ran only in a native copy of the two functions, so CI's own run is the test.
Full
python tuxbox.py checkofb222a24e(onbbc26254, GE-Proton11-14): RTX 5090 (10de:2b85, 620.70.10) 203 pass, 0 fail; AMD iGPU (1002:13c0, RADV) 202 pass, 0 fail. That is the previous head. The branch is now rebased onto717a74c4asa85b24ac(conflicts with #585 and #610 instream.rsandgraphics.rs; its raster root trace moved toroot_trace.rsfor the line limit):check --no-gpu13 pass, 0 fail; its own full checks are queued on both cards.Evidence (previous head): TuxBox check of
b222a24e4d, no uncommitted changes, GPU 10de:2b85: 17 passed, 0 failed, 0 not runEvidence (previous head): TuxBox check of
b222a24e4d, no uncommitted changes, GPU 1002:13c0: 17 passed, 0 failed, 0 not runWhat isn't covered
🤖 Generated with Claude Code