From b38480d6c74f5d13ec0ba399f47546f94ba9fe23 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 13 Aug 2024 12:57:22 -0400 Subject: [PATCH] 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: --- src/egl/drivers/dri2/platform_wayland.c | 2 +- src/egl/drivers/dri2/platform_x11.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 9ae95737c96..3b352f4123f 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -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; } diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index ba9a4455b7d..763e4e6f372 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -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; }