summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/xlib/xlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/winsys/xlib/xlib.c')
-rw-r--r--src/gallium/winsys/xlib/xlib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/winsys/xlib/xlib.c b/src/gallium/winsys/xlib/xlib.c
index 4982230000c..da722282156 100644
--- a/src/gallium/winsys/xlib/xlib.c
+++ b/src/gallium/winsys/xlib/xlib.c
@@ -73,16 +73,24 @@ static void _init( void )
switch (xlib_mode) {
case MODE_TRACE:
+#if defined(GALLIUM_TRACE) && defined(GALLIUM_SOFTPIPE)
xmesa_set_driver( &xlib_trace_driver );
+#endif
break;
case MODE_BRW:
+#if defined(GALLIUM_BRW)
xmesa_set_driver( &xlib_brw_driver );
+#endif
break;
case MODE_CELL:
+#if defined(GALLIUM_CELL)
xmesa_set_driver( &xlib_cell_driver );
+#endif
break;
case MODE_SOFTPIPE:
+#if defined(GALLIUM_SOFTPIPE)
xmesa_set_driver( &xlib_softpipe_driver );
+#endif
break;
default:
assert(0);