diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 5e74c23d73a..635fdda2527 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -4145,8 +4145,8 @@ vtn_emit_memory_barrier(struct vtn_builder *b, SpvScope scope, return; } - /* There's only two scopes thing left */ - vtn_assert(scope == SpvScopeInvocation || scope == SpvScopeDevice); + /* There's only three scopes left */ + vtn_assert(scope == SpvScopeInvocation || scope == SpvScopeDevice || scope == SpvScopeQueueFamily); /* Map the GLSL memoryBarrier() construct and any barriers with more than one * semantic to the corresponding NIR one.