From b21cd1ee1ba85065b27bf71a7d3b8498dcdd6b76 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 15 Dec 2022 14:18:38 +0200 Subject: [PATCH] anv: fixup another dirty issue with gpu_memcpy Signed-off-by: Lionel Landwerlin Cc: mesa-stable Reviewed-by: Jason Ekstrand Part-of: --- src/intel/vulkan/genX_gpu_memcpy.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/genX_gpu_memcpy.c b/src/intel/vulkan/genX_gpu_memcpy.c index b63f103..6c84fbd 100644 --- a/src/intel/vulkan/genX_gpu_memcpy.c +++ b/src/intel/vulkan/genX_gpu_memcpy.c @@ -311,10 +311,11 @@ genX(cmd_buffer_so_memcpy)(struct anv_cmd_buffer *cmd_buffer, 1ull << 32); #endif - /* Invalidate pipeline & raster discard since we touch - * 3DSTATE_STREAMOUT. + /* Invalidate pipeline, xfb (for 3DSTATE_SO_BUFFER) & raster discard (for + * 3DSTATE_STREAMOUT). */ - cmd_buffer->state.gfx.dirty |= ANV_CMD_DIRTY_PIPELINE; + cmd_buffer->state.gfx.dirty |= (ANV_CMD_DIRTY_PIPELINE | + ANV_CMD_DIRTY_XFB_ENABLE); BITSET_SET(cmd_buffer->vk.dynamic_graphics_state.dirty, MESA_VK_DYNAMIC_RS_RASTERIZER_DISCARD_ENABLE); } -- 2.7.4