egl: only take render nodes into account when listing DRM devices
authorSimon Ser <contact@emersion.fr>
Thu, 25 Mar 2021 17:42:06 +0000 (18:42 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Mar 2021 10:32:31 +0000 (10:32 +0000)
commite39d72aec203ee317feb87ba1c8953a99aad2a5c
tree7a87e63c41714cdddc11d5ca5a8b2bba3a2cc53d
parent08a51770bd1b39262003a14850d416df04d13ac7
egl: only take render nodes into account when listing DRM devices

We don't want to expose an EGL device for a display-only DRM devices
(like VKMS). For these DRM devices we have a separate software-rendering
device (the first in the list, always present).

There is a similar check in _eglAddDRMDevice, however it will be
removed in a future commit to allow split render/display devices
to be properly added. We can't figure out whether we're on a split
render/display system before loading the driver.

Signed-off-by: Simon Ser <contact@emersion.fr>
Fixes: 5743a36b2b32 ("egl: Don't add hardware device if there is no render node v2.")
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9697>
src/egl/main/egldevice.c