vulkan/wsi: return VK_SUBOPTIMAL_KHR for sw/x11 on window resize
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 19 Jul 2022 20:40:06 +0000 (16:40 -0400)
committerMarge Bot <emma+marge@anholt.net>
Wed, 20 Jul 2022 21:37:02 +0000 (21:37 +0000)
commit6139493ae384cfdc8452fabd41287ebd1d539f4c
tree5d1be1471f66d166680e4a4a439cf11b0c52bd94
parent74aea0b840334984255753fe19e0f03839ec2b82
vulkan/wsi: return VK_SUBOPTIMAL_KHR for sw/x11 on window resize

the other codepaths all end up checking geometry in one way or another
in order to validate the extents, so add a check here to do the same

fixes #6893

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17638>
src/vulkan/wsi/wsi_common_x11.c