[PATCH] glx/dri2: Disable AIGLX if indirect GLX is disabled
Michel Dänzer
michel at daenzer.net
Wed Mar 4 20:18:51 PST 2015
On 04.03.2015 21:16, Chris Wilson wrote:
> There is no point in setting up the acceleration for indirect GLX if
> indirect GLX is itself disabled.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
> glx/glxdri2.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/glx/glxdri2.c b/glx/glxdri2.c
> index ec86a73..7cb0f28 100644
> --- a/glx/glxdri2.c
> +++ b/glx/glxdri2.c
> @@ -945,6 +945,9 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
> size_t buffer_size;
> ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
>
> + if (!enableIndirectGLX)
> + return NULL;
> +
> screen = calloc(1, sizeof *screen);
> if (screen == NULL)
> return NULL;
>
Can the GLX visual information still be probed from the DRI driver with
this patch?
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the xorg-devel
mailing list