zink: avoid UAF on wayland async present with to-be-retired swapchain
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 19 Sep 2023 12:53:42 +0000 (08:53 -0400)
committerMarge Bot <emma+marge@anholt.net>
Fri, 22 Sep 2023 19:34:21 +0000 (19:34 +0000)
commitaaabb5b0f209dfad32ff108a49f39871e688444f
treeff1081e1ace68f822443120f7d139a3039050ae7
parent2b7b1059e418359c6445833e12dea27842810cc6
zink: avoid UAF on wayland async present with to-be-retired swapchain

wayland surfaces are likely to become unlinked in WSI implementations upon
retiring a swapchain, requiring the pending present to complete
in order to avoid invalid access

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25288>
src/gallium/drivers/zink/zink_kopper.c