From: Rhys Perry Date: Fri, 28 Feb 2020 19:31:22 +0000 (+0000) Subject: spirv: fix memory_barrier_tcs_patch emission X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b361df9cf73aae45fff7f766da46d585d903c92;p=mesa.git spirv: fix memory_barrier_tcs_patch emission Shouldn't affect any driver, since all currently implement memory_barrier_tcs_patch as a no-op. It also looks like optimizations are fine Signed-off-by: Rhys Perry Reviewed-by: Caio Marcelo de Oliveira Filho Tested-by: Marge Bot Part-of: --- diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 9403a314b52..61abc727278 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++ b/src/compiler/spirv/spirv_to_nir.c @@ -3585,7 +3585,8 @@ vtn_emit_memory_barrier(struct vtn_builder *b, SpvScope scope, SpvMemorySemanticsUniformMemoryMask | SpvMemorySemanticsWorkgroupMemoryMask | SpvMemorySemanticsAtomicCounterMemoryMask | - SpvMemorySemanticsImageMemoryMask; + SpvMemorySemanticsImageMemoryMask | + SpvMemorySemanticsOutputMemoryMask; /* If we're not actually doing a memory barrier, bail */ if (!(semantics & all_memory_semantics))