Mesa (main): crocus/tc: init/deinit threaded resource
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 6 04:40:57 UTC 2021
Module: Mesa
Branch: main
Commit: 902eaa9382aa3dc7d627bf46ded8db337c748e1c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=902eaa9382aa3dc7d627bf46ded8db337c748e1c
Author: Dave Airlie <airlied at redhat.com>
Date: Mon Jul 5 15:50:08 2021 +1000
crocus/tc: init/deinit threaded resource
Reviewed-by: Zoltán Böszörményi <zboszor at pr.hu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11710>
---
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 e3034268c7e..eae2a0873af 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);
More information about the mesa-commit
mailing list