panfrost: Move patched_s out of the pan_blitter_views struct
authorIcecream95 <ixn@disroot.org>
Thu, 5 May 2022 01:06:28 +0000 (13:06 +1200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 20 May 2022 23:17:07 +0000 (23:17 +0000)
commit2f2ddfa0acaa5fbe14f1458abc49328b4ef610de
treeecd5a8e608c53d0169f24afd2b0729f9b348f05c
parentf1f39fa645c59617546522d99f8bd85e70b5655e
panfrost: Move patched_s out of the pan_blitter_views struct

The struct is returned from a function, so in debug builds the address
may change after returning, and pointers to patched_s will be broken.

Pass the pointer to the patched stencil view as a parameter to
pan_preload_get_views to avoid this.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16343>
src/panfrost/lib/pan_blitter.c