panfrost: Update sampler views when the texture bo changes
authorIcecream95 <ixn@keemail.me>
Sat, 20 Jun 2020 07:09:03 +0000 (19:09 +1200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 12:15:05 +0000 (12:15 +0000)
commit65b3b08aaf4f5e9d9207e174232b4bbb820d7de4
treea99ec1268f650958522bf1fb606f0d751ebfd402
parent96300120609a37020733cb9545707d863ebfe00a
panfrost: Update sampler views when the texture bo changes

The BO reallocation path in panfrost_transfer_map caused textures and
sampler views to get out of sync.

v2: Use the GPU address of the BO in case two BOs get allocated at the
    same address.

Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5573>
src/gallium/drivers/panfrost/pan_cmdstream.c
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h