graw: Use inline debug helper instead of non-inline version
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 10 Nov 2010 22:02:39 +0000 (22:02 +0000)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 17 Nov 2010 23:49:09 +0000 (23:49 +0000)
src/gallium/targets/graw-gdi/SConscript
src/gallium/targets/graw-gdi/graw_gdi.c
src/gallium/targets/graw-xlib/SConscript
src/gallium/targets/graw-xlib/graw_xlib.c

index 8ee8915acec5882fb5d3024991a8d369d8bf5aa7..8d98b36fba4199868f9acc890da1af26aa2fa3df 100644 (file)
@@ -9,12 +9,15 @@ env.Append(CPPPATH = [
     '#src/gallium/winsys/sw',
 ])
 
+env.Append(CPPDEFINES = ['GALLIUM_RBUG', 'GALLIUM_TRACE', 'GALLIUM_GALAHAD'])
+
 env.Prepend(LIBS = [
     gallium,
     'gdi32',
     identity,
     rbug,
     trace,
+    galahad,
     'user32',
     'ws2_32',
 ])
index bd6242b0779c5da7774549c0397b342ccac075c0..17ca2a761cabf61aef25902a31eee67af5c778bf 100644 (file)
@@ -29,7 +29,7 @@
 #include "gdi/gdi_sw_winsys.h"
 #include "pipe/p_screen.h"
 #include "state_tracker/graw.h"
-#include "target-helpers/wrap_screen.h"
+#include "target-helpers/inline_debug_helper.h"
 #include "target-helpers/inline_sw_helper.h"
 #include <windows.h>
 
@@ -116,7 +116,7 @@ graw_create_window_and_screen(int x,
 
    *handle = (void *)hDC;
 
-   return gallium_wrap_screen(screen);
+   return debug_screen_wrap(screen);
 
 fail:
    if (hWnd)
index e50eb8a03d75ed7937e275f23708c1e65fb413e0..6d32ea537d2cbd49e8b62b84ef5d758fc277ec09 100644 (file)
@@ -9,7 +9,7 @@ env.Prepend(LIBS = [
     ws_xlib,
     trace,
     rbug,
-    identity,
+    galahad,
     gallium,
 ])
 
@@ -20,6 +20,8 @@ env.Append(CPPPATH = [
     '#src/gallium/include/state_tracker',
 ])
 
+env.Append(CPPDEFINES = ['GALLIUM_RBUG', 'GALLIUM_TRACE', 'GALLIUM_GALAHAD'])
+
 sources = [
     'graw_xlib.c',
     graw_util
index 8658e19e3a380c2fb6a9df54389821caa889c074..578086f8f9a03b6139a6eeef2ee349601679a8c2 100644 (file)
@@ -3,8 +3,8 @@
 #include "pipe/p_screen.h"
 #include "util/u_debug.h"
 #include "util/u_memory.h"
-#include "target-helpers/wrap_screen.h"
 #include "target-helpers/inline_sw_helper.h"
+#include "target-helpers/inline_debug_helper.h"
 #include "state_tracker/xlib_sw_winsys.h"
 #include "state_tracker/graw.h"
 
@@ -36,7 +36,7 @@ graw_create_screen( void )
 
    /* Inject any wrapping layers we want to here:
     */
-   return gallium_wrap_screen( screen );
+   return debug_screen_wrap( screen );
 }