From 902eaa9382aa3dc7d627bf46ded8db337c748e1c Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 5 Jul 2021 15:50:08 +1000 Subject: [PATCH] crocus/tc: init/deinit threaded resource MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Zoltán Böszörményi Part-of: --- src/gallium/drivers/crocus/crocus_resource.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/crocus/crocus_resource.c b/src/gallium/drivers/crocus/crocus_resource.c index e303426..eae2a08 100644 --- a/src/gallium/drivers/crocus/crocus_resource.c +++ b/src/gallium/drivers/crocus/crocus_resource.c @@ -330,6 +330,7 @@ crocus_resource_destroy(struct pipe_screen *screen, pipe_resource_reference((struct pipe_resource **)&res->shadow, NULL); crocus_resource_disable_aux(res); + threaded_resource_deinit(resource); crocus_bo_unreference(res->bo); crocus_pscreen_unref(res->orig_screen); free(res); @@ -347,6 +348,7 @@ crocus_alloc_resource(struct pipe_screen *pscreen, res->base.b.screen = pscreen; res->orig_screen = crocus_pscreen_ref(pscreen); pipe_reference_init(&res->base.b.reference, 1); + threaded_resource_init(&res->base.b); if (templ->target == PIPE_BUFFER) util_range_init(&res->valid_buffer_range); -- 2.7.4