GPU: attribute timed pipeline rebinds on a command list #2852

Open
github-bot wants to merge 1 commit from github-bot/gh-2852 into main AGit
Owner

@⁠ghptc on GitHub · 2026-11-29 18:08 UTC · original
ghptc:fix/cardmeter-pipeline-rebind → main · +15 −20 · 1 files · 1 commits · open

Problem

With VICTORY_CARD_METER_PIPELINES=1, HostList::bind_pipeline uses the command list's resource-retention set before recording timestamp boundaries. For a list that binds A, then B, then A again, the second A is already retained, so the function returns early. B's interval then includes the final A segment.

Change

Keep each PSO and root signature once per list and continue to collect distinct names for the list summary. Record the opt-in timing boundary on every bind that reaches HostList::bind_pipeline, including rebinds. The default mode still records no per-pipeline spans.

Verification

The CPU fixture compiled the production methods extracted from 55d06914 and this commit against a synthetic recorder. All three candidate controls passed.

Control Baseline Candidate
A → B → A, segment lengths of 7, 19 and 3 ticks A [0,7], B [7,29] A [0,7], B [7,26], A [26,29]
Eight independent lists recorded in parallel, 100 sequences per list Missing rebind boundary in all eight test threads 800 sequences attributed correctly
Per-pipeline meter off Two distinct names, two PSOs and one shared root retained, zero per-pipeline spans Same result

These tests verify marker emission and resource retention on the CPU. GPU timestamps and frame-time changes are outside the measured scope. Whole-list timing remains useful for work outside these bind intervals.

**@⁠ghptc** on GitHub · 2026-11-29 18:08 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2852) `ghptc:fix/cardmeter-pipeline-rebind` → `main` · +15 −20 · 1 files · 1 commits · open ## Problem With `VICTORY_CARD_METER_PIPELINES=1`, `HostList::bind_pipeline` uses the command list's resource-retention set before recording timestamp boundaries. For a list that binds A, then B, then A again, the second A is already retained, so the function returns early. B's interval then includes the final A segment. ## Change Keep each PSO and root signature once per list and continue to collect distinct names for the list summary. Record the opt-in timing boundary on every bind that reaches `HostList::bind_pipeline`, including rebinds. The default mode still records no per-pipeline spans. ## Verification The CPU fixture compiled the production methods extracted from `55d06914` and this commit against a synthetic recorder. All three candidate controls passed. | Control | Baseline | Candidate | |---|---|---| | A → B → A, segment lengths of 7, 19 and 3 ticks | A `[0,7]`, B `[7,29]` | A `[0,7]`, B `[7,26]`, A `[26,29]` | | Eight independent lists recorded in parallel, 100 sequences per list | Missing rebind boundary in all eight test threads | 800 sequences attributed correctly | | Per-pipeline meter off | Two distinct names, two PSOs and one shared root retained, zero per-pipeline spans | Same result | These tests verify marker emission and resource retention on the CPU. GPU timestamps and frame-time changes are outside the measured scope. Whole-list timing remains useful for work outside these bind intervals.
Retain a PSO and its root signature once per list while recording every opted-in pipeline transition. An A to B to A bind sequence used to leave the final A span attributed to B.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 18:12:27 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2852'
git switch 'github-bot/gh-2852'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2852'
git switch 'github-bot/gh-2852'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2852'
git switch 'main'
git merge --squash 'github-bot/gh-2852'
git switch 'main'
git merge --ff-only 'github-bot/gh-2852'
git switch 'main'
git merge 'github-bot/gh-2852'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2852
No description provided.