From 3169c9818bcaeb9e38fad8eaf5ec6772816d7f91 Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Sun, 26 Feb 2017 20:01:26 +0100 Subject: [PATCH] radv: Reset emitted compute pipeline when calling secondary cmd buffer. Otherwise if the new compute pipeline is the same as the last used pipeline before the call, we don't emit it again. Signed-off-by: Bas Nieuwenhuizen Reviewed-by: Dave Airlie Cc: 13.0 17.0 (cherry picked from commit bb878db7eb94e48476a920d66174a45da2585e19) --- src/amd/vulkan/radv_cmd_buffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index d47db9aae65..7ff052ff994 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1827,6 +1827,7 @@ void radv_CmdExecuteCommands( /* if we execute secondary we need to re-emit out pipelines */ if (commandBufferCount) { primary->state.emitted_pipeline = NULL; + primary->state.emitted_compute_pipeline = NULL; primary->state.dirty |= RADV_CMD_DIRTY_PIPELINE; primary->state.dirty |= RADV_CMD_DIRTY_DYNAMIC_ALL; } -- 2.11.0