d3d12: make scene instances of refused title-memory builds inactive #442
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/442"
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 glovepost on 2026-11-29T04:41:13Z.
Summary
A build into title memory reserved and published its storage before its inputs were translated. When the build was then refused, an unreadable index format or a failed import, scenes reached storage nothing was built into, or a structure the title had replaced.
Publish that storage once the build is recorded. Publish native address 0 when the build is refused, so instance fixups make those instances inactive. Lists recorded earlier still keep storage a later build takes, which current main already returns from
guest_memory::target.ray-tracing-refused-structurebuilds two structures in title memory, traces them, then rebuilds the first with 8-bit indices. The scene must miss that instance and still hit the second.Rebased onto current
main(28717263). The reserved-scratch change is a separate branch and also edits the ray-tracing build path and the Lanes lists, so one of the two will need a rebase after the other merges.Tested
Run the checks relevant to this change.
lanes-selftest-ray-tracing-refused-structureis the new scenario. The fulllanes-selftestsuite is 25/25 on both adapters, including that scenario and the existing ray-tracing cases. The lanes package was built withpython3 build.py bvhand thenpython3 build.py lanes, because the lanes target copiesXboxBvhBuilder.dlland does not build it.Code checks on this rebase:
Both exited 0.
cargo checkprinted two existing warnings indescriptor_paging.rsandtests/device/placement/upload.rs.GPU, driver and backend:
10de:1e84, driver 620.73.041002:13c0, Mesa 26.3.1upstream-pr-checks,--windows-dxcpointing at Microsoft's x64dxcompiler.dllanddxil.dllCommands run and their results:
Claude Code wrote the original port. This session rebased it onto current main, kept the newer guest-memory release list, reran the code checks, and recorded the Lanes suite above.
Checks
CI runs the Python unit tests, the shader compiler, DXBC, and XG layout tests, and a Windows typecheck of
tuxbox-d3d12.