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
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1852"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.