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

Manually merged
github merged 3 commits from github-bot/gh-1852 into main 2026-11-30 14:17:13 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-29 00:46 UTC · original
101Leafy:nv/uav-fold → main · +284 −10 · 4 files · 3 commits · merged 2026-11-30 14:12 UTC

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.

**@⁠101Leafy** on GitHub · 2026-11-29 00:46 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1852) `101Leafy:nv/uav-fold` → `main` · +284 −10 · 4 files · 3 commits · merged 2026-11-30 14:12 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 00:50:47 +00:00
github-bot force-pushed github-bot/gh-1852 from 2b23b76eaf to ed7cf41b78 2026-11-29 07:27:12 +00:00 Compare
github-bot force-pushed github-bot/gh-1852 from ed7cf41b78 to 94282db7ac 2026-11-29 09:23:17 +00:00 Compare
github manually merged commit 6201e18efa into main 2026-11-30 14:17:13 +00:00
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!1852
No description provided.