vk/wsi/x11: handle geometry updating more asynchronously
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 13 Jun 2023 20:55:45 +0000 (16:55 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Jul 2023 14:17:02 +0000 (14:17 +0000)
commit36d5b58317179e5db32800743ef0faed4655b9fb
tree1f923b5f342ec5f10e88c1befc56a33bc5ccb795
parentfb9f697fbb8f836aaf12a269195841e36b93adf2
vk/wsi/x11: handle geometry updating more asynchronously

this uses geometry updates from events when possible in order to avoid
roundtripping during vkGetPhysicalDeviceSurfaceCapabilitiesKHR, which
significantly improves wsi performance in severely bottlenecked scenarios

now that roundtripping is completely eliminated from acquires in most scenarios,
this improves acquire perf by 10%+

Acked-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23835>
src/vulkan/wsi/wsi_common_x11.c