gpu: avoid redundant UAV barrier after indirect clamp #3915

Open
Tigoniukas wants to merge 1 commit from upstream-pr/3915 into main
Tigoniukas commented 2026-11-30 22:05:14 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Tigoniukas on 2026-11-30T22:05:14Z.


No description provided.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5574604937 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3915). Originally posted by [Tigoniukas](https://github.com/Tigoniukas) on 2026-11-30T22:05:14Z. --- _No description provided._
passerbyyhx commented 2026-12-01 14:08:40 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by passerbyyhx on 2026-12-01T14:08:40Z.


I compared ca68425c with its parent 63bcca43 on an RTX 4090 Laptop and Microsoft WARP. A fixture recorded the barrier types handed to the real command list during bound. Both revisions issued [UAV, TRANSITION] before the dispatch. After it, the parent issued [UAV, TRANSITION] and the head issued [TRANSITION].

Three draws of 2^24 vertices and four instances produced first-word readbacks [16777216, 16777216, 0] on the first clamp. A second clamp on the same list read back [0, 0, 0] with the shared budget spent. Both adapters and revisions agreed. The original title arguments stayed intact, and the existing reversed-list-order transition test also passed.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7313764210 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3915#issuecomment-7313764210). Originally posted by [passerbyyhx](https://github.com/passerbyyhx) on 2026-12-01T14:08:40Z. --- I compared `ca68425c` with its parent `63bcca43` on an RTX 4090 Laptop and Microsoft WARP. A fixture recorded the barrier types handed to the real command list during `bound`. Both revisions issued `[UAV, TRANSITION]` before the dispatch. After it, the parent issued `[UAV, TRANSITION]` and the head issued `[TRANSITION]`. Three draws of `2^24` vertices and four instances produced first-word readbacks `[16777216, 16777216, 0]` on the first clamp. A second clamp on the same list read back `[0, 0, 0]` with the shared budget spent. Both adapters and revisions agreed. The original title arguments stayed intact, and the existing reversed-list-order transition test also passed.
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/3915:upstream-pr/3915'
git switch 'upstream-pr/3915'

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