asahi: Add extra barrier for texture atomics on G13X
Found experimentally. Fixes KHR-GLES31.core.texture_buffer.texture_buffer_atomic_functions on G13D. Signed-off-by: Asahi Lina <lina@asahilina.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26614>
This commit is contained in:
committed by
Alyssa Rosenzweig
parent
376c2697dc
commit
45ef977481
@@ -1202,6 +1202,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 */
|
||||
agx_memory_barrier(b);
|
||||
/* Found experimentally... */
|
||||
if (b->shader->key->needs_g13x_coherency)
|
||||
agx_memory_barrier_2(b);
|
||||
|
||||
/* TODO: Which ones do we actually need? */
|
||||
agx_image_barrier_1(b);
|
||||
|
||||
Reference in New Issue
Block a user