egl: really fix kopper fd passing

for real this time.

Fixes: c8c46bf900 ("egl: fix fd passing on init with zink")

Fixes: 991cc686a5f (egl: really fix kopper fd passing)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30647>
This commit is contained in:
Mike Blumenkrantz 2024-08-13 09:25:24 -04:00 committed by Marge Bot
parent b66743984c
commit 28b291446b

View file

@ -805,13 +805,7 @@ dri2_create_screen(_EGLDisplay *disp)
}
}
int screen_fd = -1;
if (!dri2_dpy->swrast) {
#ifdef HAVE_DRM_PLATFORM
if (!dri2_dpy->kopper || dri2_dpy->gbm_dri)
#endif
screen_fd = dri2_dpy->fd_render_gpu;
}
int screen_fd = dri2_dpy->swrast ? -1 : dri2_dpy->fd_render_gpu;
dri2_dpy->dri_screen_render_gpu = driCreateNewScreen3(
0, screen_fd, dri2_dpy->loader_extensions, type,
&dri2_dpy->driver_configs, false, dri2_dpy->multibuffers_available, disp);