From: Bas Nieuwenhuizen Date: Sun, 26 Feb 2017 19:01:26 +0000 (+0100) Subject: radv: Reset emitted compute pipeline when calling secondary cmd buffer. X-Git-Tag: upstream/17.1.0~1902 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb878db7eb94e48476a920d66174a45da2585e19;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 1e38cbe..709ae8b 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -2114,6 +2114,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; }