vk/wsi/x11: stop roundtripping on presentation
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Thu, 15 Jun 2023 14:36:19 +0000 (10:36 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Jul 2023 14:17:02 +0000 (14:17 +0000)
commit2b885b233f7a6300ae88732c179888c02788493d
treecbe99199342ffb34929e16e16a5090f7636610a4
parent36d5b58317179e5db32800743ef0faed4655b9fb
vk/wsi/x11: stop roundtripping on presentation

there's no requirement to return SUBOPTIMAL based on processed events
at present time, nor is SURFACE_LOST required here vs as a result of
acquire, so allow both of these conditions to be reported there instead

improves presentation perf by ~60%

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