anv/meta_resolve: Fix a bug in the meta pipeline destroy path
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jan 2016 03:48:43 +0000 (19:48 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jan 2016 03:48:43 +0000 (19:48 -0800)
src/vulkan/anv_meta_resolve.c

index 9fa47949288163b0e8325f1e6ef60f14185741e4..30ef727bb0641d61efc6904854b2914bdc333442 100644 (file)
@@ -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);
       }
    }