Repository navigation
gpuav: Skip data race pass on Subgroup shared barriers - #13753
Merged
spencer-lunarg merged 1 commit intoNov 24, 2026
Merged
Conversation
apollo-2006
force-pushed
the
gpuav-race-subgroup-barrier
branch
from
November 20, 2026 16:23
0ae5e51 to
460bd71
Compare
Contributor
|
This seems like a reasonable compromise. I tried to think of a good way to fold subgroup barrier tracking into the pass, but never got anywhere with it. |
A Subgroup scope OpControlBarrier with WorkgroupMemory semantics orders shared memory within a subgroup, but only a Workgroup scope barrier resets the shadow memory, so the accesses after it were reported as races. Skip the pass for those shaders instead.
spencer-lunarg
force-pushed
the
gpuav-race-subgroup-barrier
branch
from
November 23, 2026 22:22
460bd71 to
94ddeec
Compare
spencer-lunarg
approved these changes
Nov 23, 2026
spencer-lunarg
left a comment
Contributor
There was a problem hiding this comment.
Happy with this, but redid it to not have to rewalk every instruction in the pass and just detect it once when we parse the module initially as save a bool to check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #12813
The data race pass only clears its shadow memory on a Workgroup scope barrier, so a Subgroup scope
OpControlBarrieron shared memory (GroupMemoryBarrierWithWaveSyncin Slang) was ignored and the accesses after it were reported asRaceOnAtomic. As @jeffbolznv suggested, the pass now skips shaders that use one.Added GLSL and Slang tests (both fail on main), and there are no new GPU-AV failures on RADV. Happy to change anything :)