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

Open
stem23456-coder wants to merge 11 commits from upstream-pr/1291 into main
stem23456-coder commented 2026-11-26 11:17:47 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by stem23456-coder on 2026-11-26T11:17:47Z.


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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6625501676 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1291). Originally posted by [stem23456-coder](https://github.com/stem23456-coder) on 2026-11-26T11:17:47Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1291:upstream-pr/1291'
git switch 'upstream-pr/1291'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1291'
git switch 'upstream-pr/1291'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1291'
git switch 'upstream-pr/1291'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1291'
git switch 'main'
git merge --squash 'upstream-pr/1291'
git switch 'main'
git merge --ff-only 'upstream-pr/1291'
git switch 'main'
git merge 'upstream-pr/1291'
git push origin 'main'
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
fxceless/victory-fork!1288
No description provided.