mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
5f83571f92
commit
8c8e6e953f
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue