Skip to content

Commit 6bfae7c

Browse files
Add missing barriers in ballot.glsl
1 parent 8787944 commit 6bfae7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/nbl/builtin/glsl/workgroup/ballot.glsl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ bool nbl_glsl_workgroupBallotBitExtract_noEndBarriers(in uint index)
7070
}
7171
bool nbl_glsl_workgroupBallotBitExtract(in uint index)
7272
{
73+
barrier();
7374
const bool retval = nbl_glsl_workgroupBallotBitExtract_noEndBarriers(index);
7475
barrier();
7576
return retval;
@@ -101,6 +102,7 @@ uint nbl_glsl_workgroupBallotBitCount_noEndBarriers()
101102
}
102103
uint nbl_glsl_workgroupBallotBitCount()
103104
{
105+
barrier();
104106
const uint retval = nbl_glsl_workgroupBallotBitCount_noEndBarriers();
105107
barrier();
106108
return retval;

0 commit comments

Comments
 (0)