Mesa (main): zink: fix lazy descriptor deinit
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Aug 31 19:56:28 UTC 2021
Module: Mesa
Branch: main
Commit: 8529c64fb7d5e83b3dffe46b7019dfdeacc2088c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8529c64fb7d5e83b3dffe46b7019dfdeacc2088c
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Tue Jul 27 14:18:46 2021 -0400
zink: fix lazy descriptor deinit
this used to be the right conditional, but it's not anymore
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12603>
---
src/gallium/drivers/zink/zink_descriptors_lazy.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/zink/zink_descriptors_lazy.c b/src/gallium/drivers/zink/zink_descriptors_lazy.c
index fde735c4917..14dfd1ec7a3 100644
--- a/src/gallium/drivers/zink/zink_descriptors_lazy.c
+++ b/src/gallium/drivers/zink/zink_descriptors_lazy.c
@@ -668,11 +668,10 @@ zink_descriptors_deinit_lazy(struct zink_context *ctx)
struct zink_screen *screen = zink_screen(ctx->base.screen);
if (ctx->dd->dummy_pool)
vkDestroyDescriptorPool(screen->dev, ctx->dd->dummy_pool, NULL);
- if (screen->descriptor_mode == ZINK_DESCRIPTOR_MODE_LAZY &&
- screen->info.have_KHR_push_descriptor) {
+ if (ctx->dd->push_dsl[0])
vkDestroyDescriptorSetLayout(screen->dev, ctx->dd->push_dsl[0]->layout, NULL);
+ if (ctx->dd->push_dsl[1])
vkDestroyDescriptorSetLayout(screen->dev, ctx->dd->push_dsl[1]->layout, NULL);
- }
}
ralloc_free(ctx->dd);
}
More information about the mesa-commit
mailing list