mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
lavapipe: Don't delete control barriers
Control barriers still need to do synchronization even if there are no associated memory barrier modes. Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24842>
This commit is contained in:
parent
fc0aaa81ee
commit
dd92fd8fcc
1 changed files with 3 additions and 0 deletions
|
|
@ -138,6 +138,9 @@ remove_barriers_impl(nir_builder *b, nir_intrinsic_instr *intr, void *data)
|
|||
if (intr->intrinsic != nir_intrinsic_barrier)
|
||||
return false;
|
||||
if (data) {
|
||||
if (nir_intrinsic_execution_scope(intr) != SCOPE_NONE)
|
||||
return false;
|
||||
|
||||
if (nir_intrinsic_memory_scope(intr) == SCOPE_WORKGROUP ||
|
||||
nir_intrinsic_memory_scope(intr) == SCOPE_DEVICE ||
|
||||
nir_intrinsic_memory_scope(intr) == SCOPE_QUEUE_FAMILY)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue