From 73f1155193917c6b9cf2c242107dd2047e16c040 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 13 Sep 2022 09:21:48 +0200 Subject: [PATCH] radv: reset the compute pipeline when the saved one was NULL Signed-off-by: Samuel Pitoiset Reviewed-By: Mike Blumenkrantz Part-of: --- src/amd/vulkan/radv_meta.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_meta.c b/src/amd/vulkan/radv_meta.c index 6e57022cbb5..2ed1b4b044f 100644 --- a/src/amd/vulkan/radv_meta.c +++ b/src/amd/vulkan/radv_meta.c @@ -163,6 +163,8 @@ radv_meta_restore(const struct radv_meta_saved_state *state, struct radv_cmd_buf if (state->old_compute_pipeline) { radv_CmdBindPipeline(radv_cmd_buffer_to_handle(cmd_buffer), VK_PIPELINE_BIND_POINT_COMPUTE, radv_pipeline_to_handle(&state->old_compute_pipeline->base)); + } else { + cmd_buffer->state.compute_pipeline = NULL; } }