Skip to content

Commit 1dc7e93

Browse files
Make sure not to propagate loads outside interlock region.
1 parent 65e48ca commit 1dc7e93

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

spirv_glsl.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10166,6 +10166,9 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction)
1016610166
statement("beginInvocationInterlockNV();");
1016710167
else
1016810168
statement("beginInvocationInterlockARB();");
10169+
10170+
flush_all_active_variables();
10171+
// Make sure forwarding doesn't propagate outside interlock region.
1016910172
}
1017010173
break;
1017110174

@@ -10177,6 +10180,9 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction)
1017710180
statement("endInvocationInterlockNV();");
1017810181
else
1017910182
statement("endInvocationInterlockARB();");
10183+
10184+
flush_all_active_variables();
10185+
// Make sure forwarding doesn't propagate outside interlock region.
1018010186
}
1018110187
break;
1018210188

0 commit comments

Comments
 (0)