From 4e7c7656f3216da69e5644593bec0c9a85c19b9c Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 15 Aug 2023 12:07:07 -0400 Subject: [PATCH] egl: call dri3_x11_connect() for zink Acked-by: Adam Jackson Part-of: --- src/egl/drivers/dri2/platform_x11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 50e1333..33a065e 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -1530,6 +1530,9 @@ dri2_initialize_x11_swrast(_EGLDisplay *disp) * here will allow is to simply free the memory at dri2_terminate(). */ dri2_dpy->driver_name = strdup(disp->Options.Zink ? "zink" : "swrast"); + if (disp->Options.Zink && + !debug_get_bool_option("LIBGL_DRI3_DISABLE", false)) + dri3_x11_connect(dri2_dpy); if (!dri2_load_driver_swrast(disp)) goto cleanup; -- 2.7.4