summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-01-08 08:29:42 -0700
committerBrian Paul <[email protected]>2009-01-08 08:30:11 -0700
commita129c7268acc5a36852fcb006391e1f4b51ce7e1 (patch)
treea405f19c6f21187922eef57945bfefa7c1567f80 /src
parent94222d58e7b4bd452711057828922dbf2cf1c9d7 (diff)
cell: fix breakage from xlib re-org
Some of these fixes are quick band-aids for now.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/cell/ppu/Makefile3
-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
4 files changed, 10 insertions, 3 deletions
diff --git a/src/gallium/drivers/cell/ppu/Makefile b/src/gallium/drivers/cell/ppu/Makefile
index 9358a47284c..12d7ef9a370 100644
--- a/src/gallium/drivers/cell/ppu/Makefile
+++ b/src/gallium/drivers/cell/ppu/Makefile
@@ -39,8 +39,7 @@ SOURCES = \
cell_texture.c \
cell_vbuf.c \
cell_vertex_fetch.c \
- cell_vertex_shader.c \
- cell_winsys.c
+ cell_vertex_shader.c
OBJECTS = $(SOURCES:.c=.o) \
diff --git a/src/gallium/winsys/xlib/xlib_brw_context.c b/src/gallium/winsys/xlib/xlib_brw_context.c
index a2bac0cc93b..528473925ad 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 b0c7977185e..9325bdc7a68 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 e4aa2d4b6ae..79722dd72b4 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 );
}