[Mesa-dev] [PATCH 2/2] glx: provide a way to disable DRI3 using an environment variable
Martin Peres
martin.peres at free.fr
Thu May 7 03:02:46 PDT 2015
On 06/05/15 19:47, Axel Davy wrote:
> 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
Thanks Axel! I heard that there was such a variable, but no-one could
remember the name. I looked for it in the wrong place it would seem!
Let's drop this patch for the moment. If the variable works as expected,
I would suggest documenting it in envvar.html :)
More information about the mesa-dev
mailing list