egl: move is_render_node flag to platform_wayland

This flag is being used only by platform_wayland. So move it to be
included by the #ifdef HAVE_WAYLAND_PLATFORM in struct dri2_egl_display.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25504>
This commit is contained in:
Leandro Ribeiro
2023-09-04 13:32:57 -03:00
committed by Marge Bot
parent 394c3b97f1
commit e90b5385a0
2 changed files with 1 additions and 4 deletions

View File

@@ -307,6 +307,7 @@ struct dri2_egl_display {
bool authenticated;
uint32_t capabilities;
char *device_name;
bool is_render_node;
#endif
#ifdef HAVE_ANDROID_PLATFORM
@@ -314,8 +315,6 @@ struct dri2_egl_display {
/* gralloc vendor usage bit for front rendering */
uint32_t front_rendering_usage;
#endif
bool is_render_node;
};
struct dri2_egl_context {

View File

@@ -632,8 +632,6 @@ dri2_initialize_drm(_EGLDisplay *disp)
disp->Device = dev;
dri2_dpy->driver_name = strdup(dri2_dpy->gbm_dri->driver_name);
dri2_dpy->is_render_node =
drmGetNodeTypeFromFd(dri2_dpy->fd_render_gpu) == DRM_NODE_RENDER;
if (!dri2_load_driver_dri3(disp)) {
err = "DRI3: failed to load driver";