d3d12: bind a console ray walk that declares only its node buffer #578
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/578"
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 csj0oe on 2026-11-30T07:17:25Z.
What
A translated console ray walk that declares only its node buffer —
t0, space 901— was refused by the private-root matcher, which required exactlyt0+b0. The shader then ran on the title's root with no space-901 binding and vkd3d/dxil-spirv failed the compile withFailed to remap SRV 901:0; the title logs that 48 times a run.BvhPlanreplaces the boolean:Nodesaccepts a raw SRV at(space 901, register 0)and appends only that root SRV;NodesAndOffsetskeeps thet0+b0path byte-for-byte.BvhHeap.basesis optional and created only for the offsets case; anything else in space 901 (only the cbuffer, extra registers, a typed SRV, title use) is still refused.Evidence
The emitter always writes both declarations, but the cbuffer is read only from
bvh_node::scene_base, which a plain raw-buffer walk never calls. Compiling the emitted shape with an unreadb0gives PSV0class=4 space=901 reg=0 kind=11and no CBV entry — the same list as a shader with onlyt0.Tests
left: None, right: Some(Nodes)).compute_scenesuite 4/4; full D3D12 unit binary 461 passed on an RX 7600; the two GPU scene-publication tests included.check200 passed, 0 failed on an RTX 5090 (620.70.10, GE-Proton11-14) at head5f2c0f23, reported by @NickStallman. The current head differs from it only by one line intests/compile_gate.rs, which has not been run on NVIDIA.Overlap
#525 writes console-format scene data in a separate crate and does not touch this binding; asked on #533 whether #382/#525 intended to cover it; @NickStallman confirmed the
t0-only binding is ours to take, and #525 landed without touching it, so this is the tested part we own. Happy to fold it into another change if it belongs there.Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T09:56:31Z.
@csj0oe NVIDIA check, RTX 5090 (
10de:2b85, 620.70.10, GE-Proton11-14), fullpython tuxbox.py check, no uncommitted changes, at5f2c0f23(your earlier head, one5d2e913): 200 pass, 0 fail. The current head98b45f78differs from it only by one line intests/compile_gate.rs, and I haven't run that one. AMD wasn't run here. None of our eight ProjectScarlett logs has a "Failed to remap SRV 901:0" line, so the game says nothing about this on our card.Evidence: TuxBox check of
5f2c0f239d, no uncommitted changes, GPU 10de:2b85: 16 passed, 0 failed, 0 not runImported from brcly/TuxBox. Originally posted by brcly on 2026-11-30T10:02:46Z.
Merged into main as
ce3632c2(squashed and credited to you). Thanks.I checked the claim on our recorded corpus before merging. Of the 126 requests that declare space 901, main's translator plus DXC leaves 28 with only
t0, space901, which is exactly the case main refused. The compute-scene tests pass under Wine.I dropped the
compile_gate.rshunk, because main already has a Miri marker on that test.Pull request closed