swrastg: Use trace
authorJakob Bornecrantz <wallbraker@gmail.com>
Sat, 1 May 2010 10:29:20 +0000 (11:29 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sat, 1 May 2010 10:31:59 +0000 (11:31 +0100)
src/gallium/targets/dri-swrast/Makefile
src/gallium/targets/dri-swrast/swrast_drm_api.c

index fcfd690e438d650f21d1da59ea463d088888fa79..3db9781c209023911f434ce88878481a64b4047c 100644 (file)
@@ -8,7 +8,8 @@ DRIVER_DEFINES = -D__NOT_HAVE_DRM_H -DGALLIUM_SOFTPIPE
 PIPE_DRIVERS = \
        $(TOP)/src/gallium/state_trackers/dri/sw/libdrisw.a \
        $(TOP)/src/gallium/winsys/sw/dri/libswdri.a \
-       $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a
+       $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \
+       $(TOP)/src/gallium/drivers/trace/libtrace.a
 
 SWRAST_COMMON_GALLIUM_SOURCES = \
        $(TOP)/src/mesa/drivers/dri/common/utils.c \
index e8d6d8069cc6a29980352367574507f3860857a2..84142be80c8c16878cd9d60c4d7b459b239b17f0 100644 (file)
@@ -31,6 +31,7 @@
 #include "state_tracker/drm_api.h"
 #include "state_tracker/sw_winsys.h"
 #include "dri_sw_winsys.h"
+#include "trace/tr_public.h"
 
 /* Copied from targets/libgl-xlib */
 
@@ -80,7 +81,7 @@ swrast_create_screen(struct sw_winsys *winsys)
       screen = softpipe_create_screen( winsys );
 #endif
 
-   return screen;
+   return trace_screen_create(screen);;
 }
 
 struct pipe_screen *