d3d12: mirror every pixel-visible table the mesh layout rewrites #163

Merged
NathansDomainSolutions merged 1 commit from upstream-pr/163 into main 2026-11-25 11:10:29 +00:00
NathansDomainSolutions commented 2026-11-25 10:20:22 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NathansDomainSolutions on 2026-11-25T10:20:22Z.


Summary

Follow-up to #158 (merged before this commit was pushed there).

With #157 the pixel stage of a mesh pipeline is translated against the guest root, so it can read any register of a pixel-visible table, not only the ones its guest resource list names. #158 mirrored only the rewritten tables that collect_pixel_accesses found in that list. The pixel stage then still declared registers such as t6 space1 that sat in a rewritten (mesh-only) table with no pixel copy, and vkd3d-proton rejected the pipeline with -3.

This makes the pixel-only copy for every pixel-visible (ALL or PIXEL) table that the mesh layout rewrites, sized to the whole table.

Checks

  • build.py d3d12 builds; python -m unittest discover -s tests OK.
  • In game (RTX 4070, Proton Experimental, offline; main 53bb4d6 + #157 + #158): slot 86 mesh failures 3 minutes into a run went from 1,976 (accessed tables only) to 765 with this change. The t6 space1 uncovered-binding class from the previous run disappeared.

AI-assisted: written with Claude Code and reviewed by me.

🤖 Generated with Claude Code

<!-- greyfinch-sync:brcly/TuxBox:issue:6602248160 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/163). Originally posted by [NathansDomainSolutions](https://github.com/NathansDomainSolutions) on 2026-11-25T10:20:22Z. --- ## Summary Follow-up to #158 (merged before this commit was pushed there). With #157 the pixel stage of a mesh pipeline is translated against the guest root, so it can read any register of a pixel-visible table, not only the ones its guest resource list names. #158 mirrored only the rewritten tables that `collect_pixel_accesses` found in that list. The pixel stage then still declared registers such as `t6 space1` that sat in a rewritten (mesh-only) table with no pixel copy, and vkd3d-proton rejected the pipeline with -3. This makes the pixel-only copy for every pixel-visible (ALL or PIXEL) table that the mesh layout rewrites, sized to the whole table. ## Checks - `build.py d3d12` builds; `python -m unittest discover -s tests` OK. - In game (RTX 4070, Proton Experimental, offline; main 53bb4d6 + #157 + #158): slot 86 mesh failures 3 minutes into a run went from 1,976 (accessed tables only) to 765 with this change. The `t6 space1` uncovered-binding class from the previous run disappeared. AI-assisted: written with Claude Code and reviewed by me. 🤖 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!163
No description provided.