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:
committed by
Marge Bot
parent
b66743984c
commit
28b291446b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user