Trace texture bindings and upload fences for one graphics draw #1291

Open
github-bot wants to merge 11 commits from github-bot/gh-1291 into main AGit
Owner

@⁠stem23456-coder on GitHub · 2026-11-26 11:17 UTC · original
stem23456-coder:diagnostics/skin-draw → main · +1117 −25 · 11 files · 11 commits · open

For #923. The RTX 5070 Ti report places the black neck in the colour G-buffer before lighting. To compare the same draw in a lit and a black run, this adds VICTORY_TRACE_DRAW=<frame>:<pixel-shader-hash>:<occurrence> to diagnostics builds.

The trace records host descriptor bindings at recording and submission, including remapped tables. It rereads CPU-visible material indices at submission, samples texels from staged uploads, and records their order relative to the draw on the graphics queue. Fence observations bound when the copy completed. A material word is a candidate index until PIX confirms the shader reads it.

docs/skin-draw-trace.md describes capture and scripts/compare-draw-trace.py compares two captures by logical binding.

Validation

  • Rebased on 06702fe. cargo check --locked -p victory-gpu --features diagnostics,blake3/pure --tests --target x86_64-pc-windows-msvc passed from macOS.
  • All six offline comparison tests passed. A synthetic pair exercised a descriptor replacement and a material index change.
  • Validation on the reported RTX scene remains open. A matched capture pair would establish whether either mechanism occurs there.

Prepared with OpenAI Codex.

**@⁠stem23456-coder** on GitHub · 2026-11-26 11:17 UTC · [original](https://github.com/fxceless/victory-fork/pull/1291) `stem23456-coder:diagnostics/skin-draw` → `main` · +1117 −25 · 11 files · 11 commits · open For #923. The RTX 5070 Ti report places the black neck in the colour G-buffer before lighting. To compare the same draw in a lit and a black run, this adds `VICTORY_TRACE_DRAW=<frame>:<pixel-shader-hash>:<occurrence>` to diagnostics builds. The trace records host descriptor bindings at recording and submission, including remapped tables. It rereads CPU-visible material indices at submission, samples texels from staged uploads, and records their order relative to the draw on the graphics queue. Fence observations bound when the copy completed. A material word is a candidate index until PIX confirms the shader reads it. `docs/skin-draw-trace.md` describes capture and `scripts/compare-draw-trace.py` compares two captures by logical binding. **Validation** - Rebased on `06702fe`. `cargo check --locked -p victory-gpu --features diagnostics,blake3/pure --tests --target x86_64-pc-windows-msvc` passed from macOS. - All six offline comparison tests passed. A synthetic pair exercised a descriptor replacement and a material index change. - Validation on the reported RTX scene remains open. A matched capture pair would establish whether either mechanism occurs there. Prepared with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:20:00 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1291/head:github-bot/gh-1291'
git switch 'github-bot/gh-1291'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1291'
git switch 'github-bot/gh-1291'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1291'
git switch 'github-bot/gh-1291'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1291'
git switch 'main'
git merge --squash 'github-bot/gh-1291'
git switch 'main'
git merge --ff-only 'github-bot/gh-1291'
git switch 'main'
git merge 'github-bot/gh-1291'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.