Repository navigation
d3d12: give the pixel stage a copy of guest tables the mesh layout rewrites - #158
Merged
brcly merged 1 commit intoNov 25, 2026
Merged
Conversation
…writes A mesh pipeline's reflected root rewrites some guest tables into the mesh program's FSSM layout and makes them mesh-only. When the pixel stage also reads such a table, the pipeline was refused (E_NOTIMPL, mesh_table.rs pixel-access check), so the draw was lost. Append a pixel-only copy of the original table instead and bind the guest's table to both parameters at draw time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 1b04aed9c3132cdff160b2ebba9122b1affd349c) (cherry picked from commit 1b88a230760e0a382580a022bc56e515984988c2)
Contributor
Author
|
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 the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.AI-assisted: written with Claude Code and reviewed by me.
🤖 Generated with Claude Code