vulkan/wsi/wayland: improve same gpu detection
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 25 Jan 2023 18:16:23 +0000 (20:16 +0200)
committerEric Engestrom <eric@engestrom.ch>
Thu, 26 Jan 2023 15:40:35 +0000 (15:40 +0000)
commit5a2ca86429a8d1915538c777662dea01bc2d499d
tree9d9fb4c0e131f0a1a70125c2ea92a151395b30c3
parent8f0b387d9444a29b9f34cd85b190ddbc38deb935
vulkan/wsi/wayland: improve same gpu detection

Some compositor like KWin do not return the render node.

v2: Make sure we test if only drm_info.hasPrimary is true (Jason)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: db42ed1e04 ("vulkan/wsi/wl: correctly find whether the compositor uses the same GPU")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8139
Reviewed-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20914>
(cherry picked from commit e27d217fb16be3d72bc07822cd499ac78f8cc110)
.pick_status.json
src/vulkan/wsi/wsi_common_wayland.c