egl/surfaceless: Use EGL DeviceList instead of drmGetDevices2()
authorRobert Foss <rfoss@kernel.org>
Tue, 13 Jun 2023 11:57:45 +0000 (13:57 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Jul 2023 22:27:00 +0000 (22:27 +0000)
commita2aea2672792dcf5ce63b2278d6128db4c795ca2
treeb01b03251711ed169f9f8336ba866372f341ff09
parentcd52762bb65586c547004fa26d372764e120d0ce
egl/surfaceless: Use EGL DeviceList instead of drmGetDevices2()

surfaceless_probe_device() lists all of the DRM devices available,
but since EGL already already has created such a list use that instead.

Signed-off-by: Robert Foss <rfoss@kernel.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23742>
src/egl/drivers/dri2/platform_surfaceless.c