Mesa (master): zink: unref ctx->framebuffer on context destroy
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Mar 9 03:20:31 UTC 2021
Module: Mesa
Branch: master
Commit: 279ef45db553fad02267a6d74fc0e55d0ce39357
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=279ef45db553fad02267a6d74fc0e55d0ce39357
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Fri Mar 5 09:10:17 2021 -0500
zink: unref ctx->framebuffer on context destroy
we aren't guaranteed to get a final set_framebuffer_state(NULL) to do
this for us
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9434>
---
src/gallium/drivers/zink/zink_context.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 97d8d3cf0a0..96f2d5300db 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -80,6 +80,7 @@ zink_context_destroy(struct pipe_context *pctx)
debug_printf("vkQueueWaitIdle failed\n");
util_blitter_destroy(ctx->blitter);
+ zink_framebuffer_reference(screen, &ctx->framebuffer, NULL);
pipe_resource_reference(&ctx->dummy_vertex_buffer, NULL);
pipe_resource_reference(&ctx->dummy_xfb_buffer, NULL);
More information about the mesa-commit
mailing list