summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/xlib/xm_winsys.c
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-06 21:37:00 +0100
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-08-07 18:58:30 +0100
commit18fb8f148679ddddc5a781014d36a51afc304727 (patch)
treec390babb1e0d3d10ef0b02cd37ab928546e0107e /src/gallium/winsys/xlib/xm_winsys.c
parent35355f7610b69dcd2fdba451db4554478fe0acaa (diff)
xlib: Integrate with the trace pipe driver.
Diffstat (limited to 'src/gallium/winsys/xlib/xm_winsys.c')
-rw-r--r--src/gallium/winsys/xlib/xm_winsys.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/winsys/xlib/xm_winsys.c b/src/gallium/winsys/xlib/xm_winsys.c
index 9225ee510d..5a01b6167b 100644
--- a/src/gallium/winsys/xlib/xm_winsys.c
+++ b/src/gallium/winsys/xlib/xm_winsys.c
@@ -54,6 +54,11 @@
#define TILE_SIZE 32 /* avoid compilation errors */
#endif
+#ifdef GALLIUM_TRACE
+#include "trace/tr_screen.h"
+#include "trace/tr_context.h"
+#endif
+
#include "xm_winsys_aub.h"
@@ -674,7 +679,15 @@ xmesa_create_pipe_context(XMesaContext xmesa, uint pixelformat)
{
struct pipe_screen *screen = softpipe_create_screen(pws);
+#ifdef GALLIUM_TRACE
+ screen = trace_screen_create(screen);
+#endif
+
pipe = softpipe_create(screen, pws, NULL);
+
+#ifdef GALLIUM_TRACE
+ pipe = trace_context_create(pipe);
+#endif
}
if (pipe)