Changeset View
Changeset View
Standalone View
Standalone View
graphics/mesa/files/patch-src_egl_drivers_dri2_platform__x11.c
# work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627 | # work-around for https://bugs.freedesktop.org/show_bug.cgi?id=100627 | ||||
# | # | ||||
--- src/egl/drivers/dri2/platform_x11.c.orig 2018-01-23 18:08:49 UTC | --- src/egl/drivers/dri2/platform_x11.c.orig 2019-12-18 19:04:21 UTC | ||||
+++ src/egl/drivers/dri2/platform_x11.c | +++ src/egl/drivers/dri2/platform_x11.c | ||||
@@ -1466,7 +1466,11 @@ dri2_initialize_x11(_EGLDriver *drv, _EGLDisplay *disp | @@ -1539,7 +1539,11 @@ dri2_initialize_x11(_EGLDriver *drv, _EGLDisplay *disp | ||||
if (!disp->Options.ForceSoftware) { | if (!disp->Options.ForceSoftware) { | ||||
#ifdef HAVE_DRI3 | #ifdef HAVE_DRI3 | ||||
+#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(__DRM_NEXT__) | +#if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__)) && !defined(__DRM_NEXT__) | ||||
+ if (env_var_as_boolean("LIBGL_DRI3_ENABLE", false) && !env_var_as_boolean("LIBGL_DRI3_DISABLE", false)) | + if (env_var_as_boolean("LIBGL_DRI3_ENABLE", false) && !env_var_as_boolean("LIBGL_DRI3_DISABLE", false)) | ||||
+#else | +#else | ||||
if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false)) | if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false)) | ||||
+#endif | +#endif | ||||
initialized = dri2_initialize_x11_dri3(drv, disp); | initialized = dri2_initialize_x11_dri3(drv, disp); | ||||
#endif | #endif | ||||