aux/trace: use private refcounts for samplerviews
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 25 Aug 2021 16:54:46 +0000 (12:54 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 9 Sep 2021 19:27:35 +0000 (19:27 +0000)
commit7f5a3530125629a3553427988d04e75c31312ade
tree30ad792dc54dbf900c2ec5023bb1a47125f175cd
parent1a554fd61037c9133bf5a4a1f1dd0f1edba97096
aux/trace: use private refcounts for samplerviews

this avoids having the driver bypass the samplerview wrapper and destroying
the samplerview prematurely, e.g., spec@sgis_generate_mipmap@gen-texsubimage

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12546>
src/gallium/auxiliary/driver_trace/tr_context.c
src/gallium/auxiliary/driver_trace/tr_texture.h