From eab145e223b2c7df7e9707c9b59c22a2efd61cb5 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Sat, 9 Dec 2023 22:52:32 -0400 Subject: [PATCH] agx: use more mem->tex barriers even on g13g fixes KHR-GLES31.core.texture_buffer.texture_buffer_atomic_functions with bigger subgroups on g13g. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/asahi/compiler/agx_compile.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/asahi/compiler/agx_compile.c b/src/asahi/compiler/agx_compile.c index d2ba4fb6d75..dbb1c45c5d7 100644 --- a/src/asahi/compiler/agx_compile.c +++ b/src/asahi/compiler/agx_compile.c @@ -1229,11 +1229,9 @@ agx_emit_intrinsic(agx_builder *b, nir_intrinsic_instr *instr) } case nir_intrinsic_fence_mem_to_tex_agx: { - /* Flush out the atomic to main memory */ + /* Flush out the atomic to main memory... Found experimentally... */ agx_memory_barrier(b); - /* Found experimentally... */ - if (b->shader->key->needs_g13x_coherency) - agx_memory_barrier_2(b); + agx_memory_barrier_2(b); /* TODO: Which ones do we actually need? */ agx_image_barrier_1(b);