From: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
Date: Thu, 25 Aug 2022 09:34:23 +0200
Subject: [PATCH 4/4] Disable request to EGL_DRM_RENDER_NODE_FILE_EXT

Depending on GPU userland implementationn the reqest of EGL_DRM_RENDER_NODE_FILE_EXT
return /dev/dri/renderD128 but this interface are not always present.

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
---
 libweston/renderer-gl/egl-glue.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libweston/renderer-gl/egl-glue.c b/libweston/renderer-gl/egl-glue.c
index 013172a..46063c5 100644
--- a/libweston/renderer-gl/egl-glue.c
+++ b/libweston/renderer-gl/egl-glue.c
@@ -480,9 +480,9 @@ gl_renderer_set_egl_device(struct gl_renderer *gr)
 	gl_renderer_log_extensions("EGL device extensions", extensions);
 
 	/* Try to query the render node using EGL_DRM_RENDER_NODE_FILE_EXT */
-	if (weston_check_egl_extension(extensions, "EGL_EXT_device_drm_render_node"))
-		gr->drm_device = gr->query_device_string(gr->egl_device,
-							 EGL_DRM_RENDER_NODE_FILE_EXT);
+/*        if (weston_check_egl_extension(extensions, "EGL_EXT_device_drm_render_node"))*/
+/*                gr->drm_device = gr->query_device_string(gr->egl_device,*/
+/*                                                         EGL_DRM_RENDER_NODE_FILE_EXT);*/
 
 	/* The extension is not supported by the Mesa version of the system or
 	 * the query failed. Fallback to EGL_DRM_DEVICE_FILE_EXT */
-- 
