d3d12: give the pixel stage a copy of guest tables the mesh layout rewrites #158
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/158"
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 NathansDomainSolutions on 2026-11-25T09:56:16Z.
Summary
A mesh pipeline's reflected root (
mesh_table::reflected) rewrites some guest descriptor tables into the mesh program's FSSM layout and makes them mesh-only. When the pixel stage also reads one of those tables,collect_pixel_accessesrefused the whole table (if rewritten { return Err(E_NOTIMPL) }).stream.rspropagates that with?, so slot 86 returned E_NOTIMPL and the draw was lost.This PR keeps the rewritten parameter mesh-only, appends a pixel-only copy of the original table parameter, and records it in a new
ComputeTable::mirrorslist (host index, guest slot). At draw time the binder sets the guest's table on both parameters. The two parameters may overlap in registers because their visibilities don't intersect.Checks
python -m unittest discover -s tests: 265 OK.build.py d3d12builds.53bb4d6+ this change, plus a local log line on each refusal site): every logged mesh-table refusal came from this check, before the change. With the change, slot 86 mesh pipelines failing E_NOTIMPL went from 6,856 (run 30b) to 154 over a 39-minute run. Those pipelines now reach pipeline creation.AI-assisted: written with Claude Code and reviewed by me.
🤖 Generated with Claude Code
Imported from brcly/TuxBox. Originally posted by NathansDomainSolutions on 2026-11-25T10:12:30Z.
Added a follow-up commit: the pixel stage is translated against the guest root (after #157 its rooted translation is no longer refused), so it can read registers of a pixel-visible table that its guest resource list doesn't name. The pixel-only copy is now made for every pixel-visible table the mesh layout rewrites.
In-game, same machine, main
53bb4d6+ #157 + this PR: slot 86 mesh failures 3 min into a run went from 1,976 (only accessed tables mirrored) to 765, and thet6 space1uncovered-binding class seen in the previous run disappeared.