Barriers: VICTORY_UAV_FOLD=1 folds a call's unordered access barriers into one on every resource and drops them after nothing that writes, with a census of the title's own (off by default) #1852

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

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


Adds VICTORY_UAV_FOLD, off by default. With VICTORY_UAV_FOLD=1, the unordered access barriers of one title barrier call fold into a single wait on every resource when the call has one already or names a buffer, and none of them is kept when nothing that writes was recorded in the list since our last full wait. Other barriers in the call keep their order.

With the switch off the barriers recorded are the same as before. Diagnostics builds count the title's own unordered access barriers either way (on every resource, on one resource, covered by another in the same call, and after nothing that writes) in four new counters with their own log line. The counter array grows to 96 so these fit next to the other new counters.

This builds on #1851 (VICTORY_WAIT_SHARE) and #1776 (VICTORY_QUIET_WAITS), so it holds their commits too.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5546155117 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1852). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-29T00:46:40Z. --- Adds VICTORY_UAV_FOLD, off by default. With VICTORY_UAV_FOLD=1, the unordered access barriers of one title barrier call fold into a single wait on every resource when the call has one already or names a buffer, and none of them is kept when nothing that writes was recorded in the list since our last full wait. Other barriers in the call keep their order. With the switch off the barriers recorded are the same as before. Diagnostics builds count the title's own unordered access barriers either way (on every resource, on one resource, covered by another in the same call, and after nothing that writes) in four new counters with their own log line. The counter array grows to 96 so these fit next to the other new counters. This builds on #1851 (VICTORY_WAIT_SHARE) and #1776 (VICTORY_QUIET_WAITS), so it holds their commits 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!1852
No description provided.