diff options
author | José Fonseca <[email protected]> | 2008-08-14 10:47:39 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-08-14 11:01:42 +0100 |
commit | 969ff9e9bf3dfae08d087bbc47ce43f17d107bfc (patch) | |
tree | d08908389fbd6f87cf8c9a38bc2846c4e1b199c8 /src/gallium/winsys/xlib/xm_winsys.c | |
parent | 3c90678ea69ee8be832e16d42a1b8049a49535e3 (diff) |
xlib: Use trace usage.
Diffstat (limited to 'src/gallium/winsys/xlib/xm_winsys.c')
-rw-r--r-- | src/gallium/winsys/xlib/xm_winsys.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/gallium/winsys/xlib/xm_winsys.c b/src/gallium/winsys/xlib/xm_winsys.c index 6071a5ad5e4..3ab4c67caec 100644 --- a/src/gallium/winsys/xlib/xm_winsys.c +++ b/src/gallium/winsys/xlib/xm_winsys.c @@ -55,7 +55,6 @@ #endif #ifdef GALLIUM_TRACE -#include "trace/tr_winsys.h" #include "trace/tr_screen.h" #include "trace/tr_context.h" #endif @@ -651,11 +650,7 @@ xmesa_get_pipe_winsys(struct xmesa_visual *xm_vis) ws->base.get_name = xm_get_name; } -#ifdef GALLIUM_TRACE - return trace_winsys_create(&ws->base); -#else - return &ws->base; -#endif + return &ws->base; } @@ -684,14 +679,12 @@ 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); + screen = trace_screen_create(screen); + + pipe = trace_context_create(screen, pipe); #endif } |