[Mesa-dev] [PATCH] glx: Fix scons build.

jfonseca at vmware.com jfonseca at vmware.com
Fri Nov 8 09:55:14 PST 2013


From: José Fonseca <jfonseca at vmware.com>

By disabling DRI3 support for the time being.

I'll add DRI3 support to scons build when the DRI3 dependencies become
more widely available (as now there is no convenient way of testing it
except building dependencies from source).
---
 src/glx/SConscript | 6 ++++++
 src/glx/glxext.c   | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/src/glx/SConscript b/src/glx/SConscript
index ef372d0..f581c12 100644
--- a/src/glx/SConscript
+++ b/src/glx/SConscript
@@ -40,6 +40,9 @@ if env['HAVE_XF86VIDMODE']:
 if False: # XXX: SHARED_GLAPI
     env.Append(CPPDEFINES = ['GLX_SHARED_GLAPI'])
 
+# XXX: Disable DRI3 for now
+env.Append(CPPDEFINES = ['GLX_NO_DRI3'])
+
 sources = [
     'clientattrib.c',
     'clientinfo.c',
@@ -63,6 +66,7 @@ sources = [
     'indirect_vertex_program.c',
     'pixel.c',
     'pixelstore.c',
+    'query_renderer.c',
     'render2.c',
     'renderpix.c',
     'single2.c',
@@ -79,6 +83,8 @@ sources = [
     'dri2_glx.c',
     'dri2.c',
     'dri2_query_renderer.c',
+    #'dri3_glx.c',
+    #'dri3_common.c',
     'applegl_glx.c',
 ]
 
diff --git a/src/glx/glxext.c b/src/glx/glxext.c
index c6e4d9f..d3c92574 100644
--- a/src/glx/glxext.c
+++ b/src/glx/glxext.c
@@ -865,8 +865,10 @@ __glXInitialize(Display * dpy)
     ** (e.g., those called in AllocAndFetchScreenConfigs).
     */
    if (glx_direct && glx_accel) {
+#if !defined(GLX_NO_DRI3)
       if (!getenv("LIBGL_DRI3_DISABLE"))
          dpyPriv->dri3Display = dri3_create_display(dpy);
+#endif
       dpyPriv->dri2Display = dri2CreateDisplay(dpy);
       dpyPriv->driDisplay = driCreateDisplay(dpy);
    }
-- 
1.8.3.2



More information about the mesa-dev mailing list