dxbc: read typed SRV buffers in raster stages under single-table roots #202

Manually merged
github merged 1 commit from gh-pr/202/head into gh-pr/202/base 2026-11-26 06:38:02 +00:00
Owner

@⁠NickStallman on GitHub · 2026-11-25 22:31 UTC · original
NickStallman:fix/raster-single-table-typed-srv → main · +6 −4 · 2 files · 1 commits · merged 2026-11-25 23:23 UTC

#168 let raster stages read a four-dword typed SRV buffer only under roots with several leading tables. ProjectScarlett also builds raster pipelines whose root is a single table ([UAV u27 space1, APPEND]) while the pixel stage reads a typed SRV buffer (t80). That record resolved as structured, PSV disagreed, and root_bindings returned None. reflected() then kept the guest root with the root-less translation, and vkd3d-proton refused it:

raster root without translation (unsupported table layout): v2 flags=0x1 static_samplers=0 params=[Table([RootRange { range_type: 2, num: 1, base_register: 27, space: 1, offset_in_table: 4294967295 }])]
dxil-spirv: Failed to remap SRV 1:2.
slot 86 pipeline stage failure #1 0x80070057 linked=false VS=4909e0e1… PS=7f697856…

Any reflected root now reads the typed SRV buffer. Root-less bindings() is unchanged. The existing test assertion for a single-table root is flipped to expect the binding, and it fails without the change.

In ProjectScarlett on the RTX 5090, from the boot to the front-end menu:

before after
raster root without translation (unsupported table layout) 4 0
slot 86 failures for the two affected VS/PS pairs (4909e0e1/7f697856, 789cbb13/e5e4da9c) 2 0
Failed to remap SRV 1:2 22 5 (VS-only pipelines, which don't reach reflection)

python tuxbox.py check on the RTX 5090 (10de:2b85), NVIDIA 595.99.02, Proton Experimental experimental-11.0-20261112: every group passed. Raster console shaders have no Lanes scenario yet: the xbox-shader self-test is compute-only and its fixture emits no FSSM or PSV records. The change is therefore covered by the tuxbox-dxbc unit test.

🤖 Generated with Claude Code

**@⁠NickStallman** on GitHub · 2026-11-25 22:31 UTC · [original](https://github.com/brcly/TuxBox/pull/202) `NickStallman:fix/raster-single-table-typed-srv` → `main` · +6 −4 · 2 files · 1 commits · merged 2026-11-25 23:23 UTC #168 let raster stages read a four-dword typed SRV buffer only under roots with several leading tables. ProjectScarlett also builds raster pipelines whose root is a single table (`[UAV u27 space1, APPEND]`) while the pixel stage reads a typed SRV buffer (`t80`). That record resolved as structured, PSV disagreed, and `root_bindings` returned `None`. `reflected()` then kept the guest root with the root-less translation, and vkd3d-proton refused it: ``` raster root without translation (unsupported table layout): v2 flags=0x1 static_samplers=0 params=[Table([RootRange { range_type: 2, num: 1, base_register: 27, space: 1, offset_in_table: 4294967295 }])] dxil-spirv: Failed to remap SRV 1:2. slot 86 pipeline stage failure #1 0x80070057 linked=false VS=4909e0e1… PS=7f697856… ``` Any reflected root now reads the typed SRV buffer. Root-less `bindings()` is unchanged. The existing test assertion for a single-table root is flipped to expect the binding, and it fails without the change. In ProjectScarlett on the RTX 5090, from the boot to the front-end menu: | | before | after | |---|---|---| | `raster root without translation (unsupported table layout)` | 4 | 0 | | slot 86 failures for the two affected VS/PS pairs (4909e0e1/7f697856, 789cbb13/e5e4da9c) | 2 | 0 | | `Failed to remap SRV 1:2` | 22 | 5 (VS-only pipelines, which don't reach reflection) | `python tuxbox.py check` on the RTX 5090 (10de:2b85), NVIDIA 595.99.02, Proton Experimental experimental-11.0-20261112: every group passed. Raster console shaders have no Lanes scenario yet: the `xbox-shader` self-test is compute-only and its fixture emits no FSSM or PSV records. The change is therefore covered by the `tuxbox-dxbc` unit test. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
#168 let raster stages read a four-dword typed SRV buffer only under roots
with several leading tables. ProjectScarlett also creates raster pipelines
whose root is one table ([UAV u27 space1, APPEND]) while the pixel stage
reads a typed SRV buffer. The record then resolved as structured, PSV
disagreed, root_bindings returned None and reflected() kept the guest root
with the root-less translation, which vkd3d-proton refused ("Failed to
remap SRV 1:2"). Any reflected root now reads it; root-less bindings()
is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:38:01 +00:00
github manually merged commit ceff8e13d6 into gh-pr/202/base 2026-11-26 06:38:02 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.