egl: extract EGLDevice setup in dedicated function
authorSimon Ser <contact@emersion.fr>
Wed, 15 Nov 2023 11:51:57 +0000 (12:51 +0100)
committerEric Engestrom <eric@engestrom.ch>
Sat, 18 Nov 2023 21:20:37 +0000 (21:20 +0000)
commitef07bc116ecaae9df9d144965947cf4f79645874
tree0ba0dde9105b14a4481d00d207411688f6c5e65b
parentf62a7df6d15dc74d0759feefc168fd3c68bbc24f
egl: extract EGLDevice setup in dedicated function

Extract the logic responsible for populating disp->Device via
_eglFindDevice(). This isn't much for now but will grow in a
following commit.

No functional changes.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
Tested-by: Iago Toral Quiroga <itoral@igalia.com>
Tested-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Backport-to: 23.3
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26205>
(cherry picked from commit b4ec0b51ce47d87d21609444dddd50c91968f26d)
.pick_status.json
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c