d3d12: prioritize missing shaders by recorded null pipeline usage #83

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

@⁠Valdi320 on GitHub · 2026-11-24 20:24 UTC · original
Valdi320:work/scarlett-null-usage → main · +453 −41 · 14 files · 2 commits · merged 2026-11-24 20:38 UTC

AI-assisted. Targets #39's thousands of substituted PSOs: creation counts alone cannot tell which missing shaders are used by recorded commands.

Opt-in under the existing TUXBOX_TRACE_PRESENT=1:

  • Bind diagnostic metadata to the guest PSO and command-list binding lifetime rather than native COM addresses; avoid stale address attribution and preserve direct compute shape samples.
  • Count native recording calls only after the draw/dispatch callback is invoked, including indirect recording calls (not GPU-resolved command counts). Separate display-bound raster calls and compute/raster totals.
  • Emit bounded interval totals and up to 8 local-only stage-identity rows at sampled present reports and recording checkpoints even without presentation. Cap distinct keys at 1024; retain aggregate overflow counts. Interval identifiers disambiguate interleaved log lines.
  • No shader bytecode or resource retention added; keep rank rows private, share only aggregate interval counters and commit.

Validation on upstream 2885072: 164 Python tests and 3 standalone counter tests pass; Windows-target D3D12 cargo check --tests and full provider build pass. RTX 4080 / Proton Experimental, isolated offline prefix, final provider with trace enabled: d3d12-tables PASS (32/32 words across two controls), d3d12-stream PASS (expected pixels, 4 rejects), xbox-frame PASS (962/962 pixels, 2 submissions). General GPU regression controls, not a forced-null end-to-end fixture. No title execution or retail inputs. Counts are recorded commands, not proof of submission, GPU execution or cause of a black frame.

**@⁠Valdi320** on GitHub · 2026-11-24 20:24 UTC · [original](https://github.com/brcly/TuxBox/pull/83) `Valdi320:work/scarlett-null-usage` → `main` · +453 −41 · 14 files · 2 commits · merged 2026-11-24 20:38 UTC AI-assisted. Targets #39's thousands of substituted PSOs: creation counts alone cannot tell which missing shaders are used by recorded commands. Opt-in under the existing TUXBOX_TRACE_PRESENT=1: - Bind diagnostic metadata to the guest PSO and command-list binding lifetime rather than native COM addresses; avoid stale address attribution and preserve direct compute shape samples. - Count native recording calls only after the draw/dispatch callback is invoked, including indirect recording calls (not GPU-resolved command counts). Separate display-bound raster calls and compute/raster totals. - Emit bounded interval totals and up to 8 local-only stage-identity rows at sampled present reports and recording checkpoints even without presentation. Cap distinct keys at 1024; retain aggregate overflow counts. Interval identifiers disambiguate interleaved log lines. - No shader bytecode or resource retention added; keep rank rows private, share only aggregate interval counters and commit. Validation on upstream 2885072: 164 Python tests and 3 standalone counter tests pass; Windows-target D3D12 cargo check --tests and full provider build pass. RTX 4080 / Proton Experimental, isolated offline prefix, final provider with trace enabled: d3d12-tables PASS (32/32 words across two controls), d3d12-stream PASS (expected pixels, 4 rejects), xbox-frame PASS (962/962 pixels, 2 submissions). General GPU regression controls, not a forced-null end-to-end fixture. No title execution or retail inputs. Counts are recorded commands, not proof of submission, GPU execution or cause of a black frame.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 06:29:53 +00:00
github manually merged commit dbc5492a99 into gh-pr/83/base 2026-11-26 06:29:54 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.