summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/target-helpers/swrast_xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/target-helpers/swrast_xlib.c')
-rw-r--r--src/gallium/auxiliary/target-helpers/swrast_xlib.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gallium/auxiliary/target-helpers/swrast_xlib.c b/src/gallium/auxiliary/target-helpers/swrast_xlib.c
index bf30ff68c1..3cab901272 100644
--- a/src/gallium/auxiliary/target-helpers/swrast_xlib.c
+++ b/src/gallium/auxiliary/target-helpers/swrast_xlib.c
@@ -37,9 +37,8 @@
#include "util/u_debug.h"
#include "softpipe/sp_public.h"
#include "llvmpipe/lp_public.h"
-#include "identity/id_public.h"
-#include "trace/tr_public.h"
#include "cell/ppu/cell_public.h"
+#include "wrap_screen.h"
/* Helper function to build a subset of a driver stack consisting of
@@ -84,15 +83,7 @@ swrast_xlib_create_screen( Display *display )
/* Inject any wrapping layers we want to here:
*/
- if (debug_get_bool_option("GALLIUM_WRAP", FALSE)) {
- screen = identity_screen_create(screen);
- }
-
- if (debug_get_bool_option("GALLIUM_TRACE", FALSE)) {
- screen = trace_screen_create( screen );
- }
-
- return screen;
+ return gallium_wrap_screen( screen );
fail:
if (winsys)