From cff71ae8ff69a9fc648e7de25f0073279d182586 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 6 Apr 2023 17:13:32 +0300 Subject: [PATCH] anv: fixup streamout write barriers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lionel Landwerlin Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8796 Reviewed-by: Tapani Pälli Part-of: --- src/intel/vulkan/anv_private.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index b71f25b73e7..bec54560470 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -2218,8 +2218,12 @@ anv_pipe_flush_bits_for_access_flags(struct anv_device *device, /* We're transitioning a buffer written either from VS stage or from * the command streamer (see CmdEndTransformFeedbackEXT), we just * need to stall the CS. + * + * Streamout writes apparently bypassing L3, in order to make them + * visible to the destination, we need to invalidate the other + * caches. */ - pipe_bits |= ANV_PIPE_CS_STALL_BIT; + pipe_bits |= ANV_PIPE_CS_STALL_BIT | ANV_PIPE_INVALIDATE_BITS; break; default: break; /* Nothing to do */