mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
egl: use more precise conditional for passing fd through to dri screen create
kms_swrast is included in the swrast conditional and needs a fd, and there is a flag which indicates pure swrast which can be used to ensure this case is detected Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30951>
This commit is contained in:
parent
45319cb253
commit
898012ba11
1 changed files with 1 additions and 1 deletions
|
|
@ -806,7 +806,7 @@ dri2_create_screen(_EGLDisplay *disp)
|
|||
}
|
||||
}
|
||||
|
||||
int screen_fd = dri2_dpy->swrast ? -1 : dri2_dpy->fd_render_gpu;
|
||||
int screen_fd = dri2_dpy->swrast_not_kms ? -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue