zink: unset pipe_resource::next pointers when creating resource copies
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 29 Apr 2022 14:57:53 +0000 (10:57 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 11 May 2022 01:30:38 +0000 (01:30 +0000)
commit8c1d9c7b744b2e5b40fd42cfd51256b16deea6a8
tree342cf6faa0060aff996ba7638327d39f6a3a3cc4
parent9aab9b4a1b2986240da945d73916601aaf09bdef
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 <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16252>
src/gallium/drivers/zink/zink_resource.c