egl/drm: fix EGL_EXT_buffer_age with gbm contexts
authorErico Nunes <nunes.erico@gmail.com>
Fri, 11 Aug 2023 10:50:49 +0000 (12:50 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Aug 2023 21:50:21 +0000 (21:50 +0000)
commitc43135d740e38814add0e29c7787970d3ca01158
tree08d3d6e44d034767c27e9f009c6e69e035550594
parentae81eb9d5013709a955d8290bbc91c30100c4bab
egl/drm: fix EGL_EXT_buffer_age with gbm contexts

Fix remaining dri2 check from 3d59f4cfcbc, which caused gbm contexts to
not expose EGL_EXT_buffer_age anymore.

Fixes: 3d59f4cfcbc ("egl/drm: Use IMAGE_DRIVER instead of DRI2_LOADER")

Reviewed-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24630>
src/egl/drivers/dri2/platform_drm.c