summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/xlib
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-01-08 08:29:42 -0700
committerBrian Paul <brianp@vmware.com>2009-01-08 08:30:11 -0700
commita129c7268acc5a36852fcb006391e1f4b51ce7e1 (patch)
treea405f19c6f21187922eef57945bfefa7c1567f80 /src/gallium/winsys/xlib
parent94222d58e7b4bd452711057828922dbf2cf1c9d7 (diff)
cell: fix breakage from xlib re-org
Some of these fixes are quick band-aids for now.
Diffstat (limited to 'src/gallium/winsys/xlib')
-rw-r--r--src/gallium/winsys/xlib/xlib_brw_context.c4
-rw-r--r--src/gallium/winsys/xlib/xlib_brw_screen.c4
-rw-r--r--src/gallium/winsys/xlib/xlib_softpipe.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/src/gallium/winsys/xlib/xlib_brw_context.c b/src/gallium/winsys/xlib/xlib_brw_context.c
index a2bac0cc93..528473925a 100644
--- a/src/gallium/winsys/xlib/xlib_brw_context.c
+++ b/src/gallium/winsys/xlib/xlib_brw_context.c
@@ -199,7 +199,11 @@ xlib_create_brw_context( struct pipe_screen *screen,
/* Create the i965simple context:
*/
+#ifdef GALLIUM_CELL
+ return NULL;
+#else
return brw_create( screen,
&xbcws->brw_context_winsys,
0 );
+#endif
}
diff --git a/src/gallium/winsys/xlib/xlib_brw_screen.c b/src/gallium/winsys/xlib/xlib_brw_screen.c
index b0c7977185..9325bdc7a6 100644
--- a/src/gallium/winsys/xlib/xlib_brw_screen.c
+++ b/src/gallium/winsys/xlib/xlib_brw_screen.c
@@ -352,7 +352,11 @@ xlib_create_brw_winsys( void )
struct pipe_screen *
xlib_create_brw_screen( struct pipe_winsys *winsys )
{
+#ifdef GALLIUM_CELL
+ return NULL;
+#else
return brw_create_screen(winsys, 0/* XXX pci_id */);
+#endif
}
diff --git a/src/gallium/winsys/xlib/xlib_softpipe.c b/src/gallium/winsys/xlib/xlib_softpipe.c
index e4aa2d4b6a..79722dd72b 100644
--- a/src/gallium/winsys/xlib/xlib_softpipe.c
+++ b/src/gallium/winsys/xlib/xlib_softpipe.c
@@ -708,7 +708,7 @@ xlib_create_cell_winsys( void )
struct pipe_screen *
xlib_create_cell_screen( struct pipe_winsys *pws )
{
- return xlib_create_softpipe_screen( pws );
+ return cell_create_screen( pws );
}