summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-27 19:48:43 -0800
committerJason Ekstrand <[email protected]>2016-01-27 19:48:43 -0800
commit983db2b8042ee8ca25a3870767e0d76940011034 (patch)
treee02576cc85abfd9ea5111f138a418966f4693094
parent9b240a1e3d875c38dce9dbae57de73e03b8690cb (diff)
anv/meta_resolve: Fix a bug in the meta pipeline destroy path
-rw-r--r--src/vulkan/anv_meta_resolve.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}