Skip to content

Commit 9c7239b

Browse files
committed
added missing reduction barrier
1 parent c23211a commit 9c7239b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/nbl/builtin/hlsl/subgroup2/arithmetic_portability_impl.hlsl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ struct reduction_impl
221221
void __call()
222222
{
223223
BinOp op;
224+
spirv::controlBarrier(spv::ScopeSubgroup, spv::ScopeSubgroup, spv::MemorySemanticsMaskNone);
224225
value = op(glsl::subgroupShuffleXor<scalar_t>(value, 0x1u<<StepLog2),value);
225226
}
226227

0 commit comments

Comments
 (0)