Waits: VICTORY_WAIT_SHARE=1 leaves out a title full wait when only bindings were made since the last one #1851

Merged
101Leafy merged 2 commits from upstream-pr/1851 into main 2026-11-30 14:12:04 +00:00
101Leafy commented 2026-11-29 00:46:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-29T00:46:32Z.


Adds VICTORY_WAIT_SHARE, off by default. With VICTORY_WAIT_SHARE=1, a full wait of the title (a barrier on buffers, a pipeline sync or a barrier group) is left out when the call recorded before it on the same host list was a full wait too, with only bindings in between: pipelines, tables, views, constants and fixed function state. No shader ran between the two that the second wait could order.

This works only in lists whose calls are written down, where every call between the two waits is seen. Work of ours run from such a stream ends the run of bindings. Diagnostics builds count the waits left out in a new WaitsLeftOut counter on the waits log line.

This builds on #1776 (VICTORY_QUIET_WAITS), which it shares code with, so it holds that commit too.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5546154229 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1851). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T00:46:32Z. --- Adds VICTORY_WAIT_SHARE, off by default. With VICTORY_WAIT_SHARE=1, a full wait of the title (a barrier on buffers, a pipeline sync or a barrier group) is left out when the call recorded before it on the same host list was a full wait too, with only bindings in between: pipelines, tables, views, constants and fixed function state. No shader ran between the two that the second wait could order. This works only in lists whose calls are written down, where every call between the two waits is seen. Work of ours run from such a stream ends the run of bindings. Diagnostics builds count the waits left out in a new WaitsLeftOut counter on the waits log line. This builds on #1776 (VICTORY_QUIET_WAITS), which it shares code with, so it holds that commit too.
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!1851
No description provided.