zink: stop leaking resource surface cache hash tables
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 7 Oct 2021 15:31:49 +0000 (11:31 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 8 Oct 2021 03:59:50 +0000 (03:59 +0000)
commit2750853894797fa36bfaeeae60e7e4ff28ddb4f0
tree959ff561e12f2cd4d47fbc5ca36d3b6b63ad74d4
parentf00ad70bfb35a196e74dcfe8c9504551cd410ab4
zink: stop leaking resource surface cache hash tables

these are owned by the resource, so stick them on a resource context
instead of the screen context

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13248>
src/gallium/drivers/zink/zink_resource.c