aux/tc: fix rp info resizing clobbering current info
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Mon, 6 Mar 2023 12:39:52 +0000 (07:39 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 8 Mar 2023 14:10:01 +0000 (14:10 +0000)
commit6ee5337d94c7a6170b6352434864686bc54e0765
tree22ee395f09dd57e564a32f14feb1ff45e770e598
parent10057d19f2cba422f2f38faa4e37c1c64f90b27b
aux/tc: fix rp info resizing clobbering current info

the recording rp_info may be a pointer to a member of the array being
reallocated, so test for this and re-set it to avoid invalid memory
access

found with this caselist:
KHR-GL46.texture_gather.offset-gather-unorm-2darray
KHR-GL46.texture_view.view_sampling

cc: mesa-stable

Acked-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21729>
src/gallium/auxiliary/util/u_threaded_context.c