spirv: fix barrier scope assert
glslang generates barriers with QueueFamily, so this is totally legal cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16462>
This commit is contained in:
committed by
Marge Bot
parent
5f83571f92
commit
8c8e6e953f
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user