egl: pass real value for software to dri2_setup_device()

this was otherwise breaking 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 12:57:22 -04:00
committed by Marge Bot
parent 7deb96a5f9
commit b38480d6c7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2989,7 +2989,7 @@ dri2_initialize_wayland_swrast(_EGLDisplay *disp)
if (!dri2_create_screen(disp))
goto cleanup;
if (!dri2_setup_device(disp, true)) {
if (!dri2_setup_device(disp, disp->Options.ForceSoftware)) {
_eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
goto cleanup;
}
+1 -1
View File
@@ -1840,7 +1840,7 @@ dri2_initialize_x11_swrast(_EGLDisplay *disp)
if (!dri2_create_screen(disp))
goto cleanup;
if (!dri2_setup_device(disp, true)) {
if (!dri2_setup_device(disp, disp->Options.ForceSoftware)) {
_eglError(EGL_NOT_INITIALIZED, "DRI2: failed to setup EGLDevice");
goto cleanup;
}