GPU: VICTORY_QUIET_WAITS leaves out title and clamp waits after nothing that writes #1776

Open
101Leafy wants to merge 5 commits from upstream-pr/1776 into main
101Leafy commented 2026-11-29 00:03:47 +00:00 (Migrated from github.com)

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


Adds VICTORY_QUIET_WAITS, off by default. With VICTORY_QUIET_WAITS=1, a full wait for earlier shader writes (a title barrier on buffers, a pipeline sync or barrier group, the wait before a clamp or a batch of clamps) is left out when nothing that writes was recorded in the list since the last one. Dispatches, draws whose shaders store to buffers or textures, copies, clears and resolves count as writes. The first wait in each host list is always kept.

With the switch on, a single clamp also ends on the move of its scratch buffer to indirect arguments without a second wait, since the clamp writes only that buffer and the budget, which it changes by atomics. With the switch off the barriers are the same as before. Diagnostics builds count the waits it would leave out in a new WaitsQuiet counter on the waits log line.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545864917 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1776). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T00:03:47Z. --- Adds VICTORY_QUIET_WAITS, off by default. With VICTORY_QUIET_WAITS=1, a full wait for earlier shader writes (a title barrier on buffers, a pipeline sync or barrier group, the wait before a clamp or a batch of clamps) is left out when nothing that writes was recorded in the list since the last one. Dispatches, draws whose shaders store to buffers or textures, copies, clears and resolves count as writes. The first wait in each host list is always kept. With the switch on, a single clamp also ends on the move of its scratch buffer to indirect arguments without a second wait, since the clamp writes only that buffer and the budget, which it changes by atomics. With the switch off the barriers are the same as before. Diagnostics builds count the waits it would leave out in a new WaitsQuiet counter on the waits log line.
trustno1-coder commented 2026-11-29 08:28:29 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T08:28:29Z.


Thank you! An earlier version of this pull request was merged into main with its original commits and is part of v2026.11.29.01, where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7253127392 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1776#issuecomment-7253127392). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-11-29T08:28:29Z. --- Thank you! An earlier version of this pull request was merged into main with its original commits and is part of [v2026.11.29.01](https://github.com/trustno1-coder/VIctory-NVIDIA/releases/tag/v2026.11.29.01), where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.
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/1776:upstream-pr/1776'
git switch 'upstream-pr/1776'

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