From 8b361df9cf73aae45fff7f766da46d585d903c92 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Fri, 28 Feb 2020 19:31:22 +0000 Subject: [PATCH] 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: --- src/compiler/spirv/spirv_to_nir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 9403a31..61abc72 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)) -- 2.7.4