vulkan/wsi/wayland: simplify wl_surface version check
authorSimon Ser <contact@emersion.fr>
Wed, 16 Jun 2021 12:33:57 +0000 (14:33 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 21 Jun 2021 20:01:28 +0000 (20:01 +0000)
commit7369b1a21ee7425492eaa2e2fece0c5e0a34ba99
tree02514cb7204cfe7809f0dfac564decada844006f
parenteb98171252aeec2a165cecbac0ee0987769f1511
vulkan/wsi/wayland: simplify wl_surface version check

No need to cast to a wl_proxy, there is a wl_surface variant
available.

No need to cache the result of get_version(), this is just a
one-line getter and doesn't perform any roundtrip.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11420>
src/vulkan/wsi/wsi_common_wayland.c