Mesa (master): libgl-xlib: Use inline debug helper instead of non-inline version

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Wed Nov 17 23:50:06 UTC 2010


Module: Mesa
Branch: master
Commit: c30656d8c24eafeb29276fa31503b30608239468
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c30656d8c24eafeb29276fa31503b30608239468

Author: Jakob Bornecrantz <jakob at vmware.com>
Date:   Wed Nov 10 23:42:17 2010 +0000

libgl-xlib: Use inline debug helper instead of non-inline version

---

 src/gallium/targets/libgl-xlib/Makefile   |    4 +++-
 src/gallium/targets/libgl-xlib/SConscript |    6 +-----
 src/gallium/targets/libgl-xlib/xlib.c     |   19 ++++---------------
 3 files changed, 8 insertions(+), 21 deletions(-)

diff --git a/src/gallium/targets/libgl-xlib/Makefile b/src/gallium/targets/libgl-xlib/Makefile
index 076a040..fb537c3 100644
--- a/src/gallium/targets/libgl-xlib/Makefile
+++ b/src/gallium/targets/libgl-xlib/Makefile
@@ -26,6 +26,8 @@ INCLUDE_DIRS = \
 
 DEFINES += \
 	-DGALLIUM_SOFTPIPE \
+	-DGALLIUM_RBUG \
+	-DGALLIUM_TRACE \
 	-DGALLIUM_GALAHAD
 #-DGALLIUM_CELL will be defined by the config */
 
@@ -44,7 +46,7 @@ LIBS = \
 	$(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a \
 	$(TOP)/src/gallium/drivers/trace/libtrace.a \
 	$(TOP)/src/gallium/drivers/rbug/librbug.a \
-	$(TOP)/src/gallium/drivers/identity/libidentity.a \
+	$(TOP)/src/gallium/drivers/galahad/libgalahad.a \
 	$(TOP)/src/mapi/glapi/libglapi.a \
 	$(TOP)/src/mesa/libmesagallium.a \
 	$(GALLIUM_AUXILIARIES) \
diff --git a/src/gallium/targets/libgl-xlib/SConscript b/src/gallium/targets/libgl-xlib/SConscript
index 582760e..6582a2f 100644
--- a/src/gallium/targets/libgl-xlib/SConscript
+++ b/src/gallium/targets/libgl-xlib/SConscript
@@ -21,7 +21,7 @@ env.Prepend(LIBS = [
     ws_xlib,
     trace,
     rbug,
-    identity,
+    galahad,
     glapi,
     mesa,
     glsl,
@@ -37,10 +37,6 @@ if True:
     env.Append(CPPDEFINES = 'GALLIUM_SOFTPIPE')
     env.Prepend(LIBS = [softpipe])
 
-if True:
-    env.Append(CPPDEFINES = 'GALLIUM_GALAHAD')
-    env.Prepend(LIBS = [galahad])
-
 if env['llvm']:
     env.Append(CPPDEFINES = 'GALLIUM_LLVMPIPE')
     env.Prepend(LIBS = [llvmpipe])
diff --git a/src/gallium/targets/libgl-xlib/xlib.c b/src/gallium/targets/libgl-xlib/xlib.c
index b0d1e52..9a3e0e0 100644
--- a/src/gallium/targets/libgl-xlib/xlib.c
+++ b/src/gallium/targets/libgl-xlib/xlib.c
@@ -32,17 +32,15 @@
  */
 #include "pipe/p_compiler.h"
 #include "util/u_debug.h"
-#include "target-helpers/wrap_screen.h"
-#include "target-helpers/inline_sw_helper.h"
 #include "state_tracker/xlib_sw_winsys.h"
 #include "xm_public.h"
 
 #include "state_tracker/st_api.h"
 #include "state_tracker/st_gl_api.h"
+#include "target-helpers/inline_sw_helper.h"
+#include "target-helpers/inline_debug_helper.h"
+
 
-#if defined(GALLIUM_GALAHAD)
-#include "galahad/glhd_public.h"
-#endif
 
 /* Helper function to build a subset of a driver stack consisting of
  * one of the software rasterizers (cell, llvmpipe, softpipe) and the
@@ -67,18 +65,9 @@ swrast_xlib_create_screen( Display *display )
    if (screen == NULL)
       goto fail;
 
-   /* XXX will fix soon */
-#if defined(GALLIUM_GALAHAD)
-   if (screen) {
-      struct pipe_screen *galahad_screen = galahad_screen_create( screen );
-      if (galahad_screen)
-         screen = galahad_screen;
-   }
-#endif
-
    /* Inject any wrapping layers we want to here:
     */
-   return gallium_wrap_screen( screen );
+   return debug_screen_wrap( screen );
 
 fail:
    if (winsys)




More information about the mesa-commit mailing list