From 5048f15737806d2b6795e736e547e4e4de7a37d1 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 28 Apr 2022 13:15:53 +0300 Subject: [PATCH] anv: reset all dynamic state after secondary execution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't know in what state the secondary buffer will leave the HW when it ends. It's easier to consider everything needs to be reemitted for now. Signed-off-by: Lionel Landwerlin Reviewed-by: Tapani Pälli Part-of: --- src/intel/vulkan/genX_cmd_buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c index 0faa2163eed..97bc5de06e8 100644 --- a/src/intel/vulkan/genX_cmd_buffer.c +++ b/src/intel/vulkan/genX_cmd_buffer.c @@ -1982,6 +1982,7 @@ genX(CmdExecuteCommands)( primary->state.current_pipeline = UINT32_MAX; primary->state.current_l3_config = NULL; primary->state.current_hash_scale = 0; + primary->state.gfx.dirty |= ANV_CMD_DIRTY_DYNAMIC_ALL; /* Each of the secondary command buffers will use its own state base * address. We need to re-emit state base address for the primary after