From: Jason Ekstrand Date: Thu, 28 Jan 2016 03:48:43 +0000 (-0800) Subject: anv/meta_resolve: Fix a bug in the meta pipeline destroy path X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=983db2b8042ee8ca25a3870767e0d76940011034;p=mesa.git anv/meta_resolve: Fix a bug in the meta pipeline destroy path --- diff --git a/src/vulkan/anv_meta_resolve.c b/src/vulkan/anv_meta_resolve.c index 9fa47949288..30ef727bb06 100644 --- a/src/vulkan/anv_meta_resolve.c +++ b/src/vulkan/anv_meta_resolve.c @@ -358,7 +358,7 @@ anv_device_finish_meta_resolve_state(struct anv_device *device) for (uint32_t i = 0; i < ARRAY_SIZE(state->resolve.pipelines); ++i) { VkPipeline pipeline_h = state->resolve.pipelines[i]; - if (!pipeline_h) { + if (pipeline_h) { ANV_CALL(DestroyPipeline)(device_h, pipeline_h, alloc); } }