[PATCH] glx/dri2: Disable AIGLX if indirect GLX is disabled

Chris Wilson chris at chris-wilson.co.uk
Wed Mar 4 04:16:29 PST 2015


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;
-- 
2.1.4



More information about the xorg-devel mailing list