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

Manually merged
github merged 1 commit from gh-pr/163/head into gh-pr/163/base 2026-11-26 06:35:30 +00:00
Owner

@⁠NathansDomainSolutions on GitHub · 2026-11-25 10:20 UTC · original
NathansDomainSolutions:fix/mesh-mirror-all-pixel-tables → main · +29 −0 · 1 files · 1 commits · merged 2026-11-25 11:10 UTC

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

**@⁠NathansDomainSolutions** on GitHub · 2026-11-25 10:20 UTC · [original](https://github.com/brcly/TuxBox/pull/163) `NathansDomainSolutions:fix/mesh-mirror-all-pixel-tables` → `main` · +29 −0 · 1 files · 1 commits · merged 2026-11-25 11:10 UTC ## 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)
The pixel stage is translated against the guest root, so it may read any
register of such a table, not only those its guest resource list names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:35:29 +00:00
github manually merged commit 069be0ca3d into gh-pr/163/base 2026-11-26 06:35:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.