[Mesa-dev] [PATCH 2/2] glx: provide a way to disable DRI3 using an environment variable

Axel Davy axel.davy at ens.fr
Wed May 6 09:47:39 PDT 2015


Le 06/05/2015 14:43, Martin Peres a écrit :
>   
> diff --git a/src/glx/dri3_glx.c b/src/glx/dri3_glx.c
> index ff77a91..5246737 100644
> --- a/src/glx/dri3_glx.c
> +++ b/src/glx/dri3_glx.c
> @@ -2092,6 +2092,11 @@ dri3_create_display(Display * dpy)
>      xcb_generic_error_t                  *error;
>      const xcb_query_extension_reply_t    *extension;
>   
> +   if (getenv("MESA_GLX_DRI3_DISABLE")) {
> +      ErrorMessageF("DRI3 disabled by the environment\n");
> +      return NULL;
> +   }
> +
>      xcb_prefetch_extension_data(c, &xcb_dri3_id);
>      xcb_prefetch_extension_data(c, &xcb_present_id);
>   
There is already a LIBGL_DRI3_DISABLE env var.

Does this one bring something different ?

Yours,

Axel Davy


More information about the mesa-dev mailing list