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

Merged
NickStallman merged 1 commit from upstream-pr/202 into main 2026-11-25 23:23:58 +00:00
NickStallman commented 2026-11-25 22:31:03 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-25T22:31:03Z.


#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

<!-- greyfinch-sync:brcly/TuxBox:issue:6615087494 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/202). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-25T22:31:03Z. --- #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)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox!202
No description provided.