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

Open
ghptc wants to merge 1 commit from upstream-pr/2852 into main
ghptc commented 2026-11-29 18:08:30 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ghptc on 2026-11-29T18:08:30Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5553583054 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2852). Originally posted by [ghptc](https://github.com/ghptc) on 2026-11-29T18:08:30Z. --- ## 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.
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/2852:upstream-pr/2852'
git switch 'upstream-pr/2852'

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/2852'
git switch 'upstream-pr/2852'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2852'
git switch 'upstream-pr/2852'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2852'
git switch 'main'
git merge --squash 'upstream-pr/2852'
git switch 'main'
git merge --ff-only 'upstream-pr/2852'
git switch 'main'
git merge 'upstream-pr/2852'
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
trustno1-coder/VIctory-NVIDIA!2852
No description provided.