d3d12: fix three verified runtime gaps in compute, raster linkage and page imports #82

Manually merged
github merged 2 commits from gh-pr/82/head into gh-pr/82/base 2026-11-26 06:29:50 +00:00
Owner

@⁠Valdi320 on GitHub · 2026-11-24 19:43 UTC · original
Valdi320:work/scarlett-runtime-bottlenecks → main · +257 −26 · 9 files · 2 commits · merged 2026-11-24 19:50 UTC

Addresses three independently identified runtime gaps motivated by the #39 trace (no proprietary input or game artifacts in this PR).

  • Compute: when reflected binding analysis returns Original, an Xbox program with embedded RTS0 now uses the ordinary prepared translation. A rootless program still requires its actual pipeline root.
  • Raster: permit a portable original pixel consumer in the on-demand VS/GS linking path, hash/check the actual bound consumer, and read verified interpolation qualifiers from its PSV0 and input signature. Preserve the existing native consumer path. Still-mismatched linked variants are refused.
  • Memory: reuse exact, still-live single-page imports across interleaved requests within one registered pool, using a bounded weak cache. No strong retention, no speculative memory-type fallback or change in guest ownership.

Validation on main 3b11973: 84 shader compiler tests (including synthetic malformed metadata and real DXC-generated pixel), 51 DXBC native-binding tests, 132 Python tests, 2 standalone host tests of the weak page cache; Windows-target D3D12 check and complete provider build succeeded. RTX 4080, Proton Experimental, isolated offline prefix, newly built provider: d3d12-tables PASS (16/16 + placed SRV 16/16), d3d12-stream PASS (slot 86, expected pixels and four invalid controls), d3d12-heaps PASS (256/256 words, 45/45 volume texels, expected 4K RGB10A2 pixel and invalid controls).

The GPU controls are general regression tests, not reproduction of the three retail failure paths. The exact mixed-stage retry, embedded-root compute failure and AMD host-memory import failure still require targeted end-to-end validation with authorized fixtures. Do not interpret this as closure of #39.

**@⁠Valdi320** on GitHub · 2026-11-24 19:43 UTC · [original](https://github.com/brcly/TuxBox/pull/82) `Valdi320:work/scarlett-runtime-bottlenecks` → `main` · +257 −26 · 9 files · 2 commits · merged 2026-11-24 19:50 UTC Addresses three independently identified runtime gaps motivated by the #39 trace (no proprietary input or game artifacts in this PR). - Compute: when reflected binding analysis returns Original, an Xbox program with embedded RTS0 now uses the ordinary prepared translation. A rootless program still requires its actual pipeline root. - Raster: permit a portable original pixel consumer in the on-demand VS/GS linking path, hash/check the actual bound consumer, and read verified interpolation qualifiers from its PSV0 and input signature. Preserve the existing native consumer path. Still-mismatched linked variants are refused. - Memory: reuse exact, still-live single-page imports across interleaved requests within one registered pool, using a bounded weak cache. No strong retention, no speculative memory-type fallback or change in guest ownership. Validation on main 3b11973: 84 shader compiler tests (including synthetic malformed metadata and real DXC-generated pixel), 51 DXBC native-binding tests, 132 Python tests, 2 standalone host tests of the weak page cache; Windows-target D3D12 check and complete provider build succeeded. RTX 4080, Proton Experimental, isolated offline prefix, newly built provider: d3d12-tables PASS (16/16 + placed SRV 16/16), d3d12-stream PASS (slot 86, expected pixels and four invalid controls), d3d12-heaps PASS (256/256 words, 45/45 volume texels, expected 4K RGB10A2 pixel and invalid controls). The GPU controls are general regression tests, not reproduction of the three retail failure paths. The exact mixed-stage retry, embedded-root compute failure and AMD host-memory import failure still require targeted end-to-end validation with authorized fixtures. Do not interpret this as closure of #39.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:29:48 +00:00
github manually merged commit 0bbb39d08a into gh-pr/82/base 2026-11-26 06:29:50 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.