From 8c1d9c7b744b2e5b40fd42cfd51256b16deea6a8 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 29 Apr 2022 10:57:53 -0400 Subject: [PATCH] zink: unset pipe_resource::next pointers when creating resource copies this otherwise walks the chain and destroys all the resources cc: mesa-stable Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_resource.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 2cc2023daf5..a7694ce2002 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -1647,6 +1647,7 @@ zink_image_map(struct pipe_context *pctx, box->height); struct pipe_resource templ = *pres; + templ.next = NULL; templ.format = format; templ.usage = usage & PIPE_MAP_READ ? PIPE_USAGE_STAGING : PIPE_USAGE_STREAM; templ.target = PIPE_BUFFER;