summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/cell
diff options
context:
space:
mode:
authorMarc Dietrich <[email protected]>2010-04-06 23:44:08 +0200
committerBrian Paul <[email protected]>2010-04-06 20:23:21 -0600
commit0963099d5e32ace5ff99ebe7efb5f1ae41c5dd31 (patch)
treebc787379b5469ee324196a949644119e03097492 /src/gallium/drivers/cell
parent45c89091487a9cd3999362cdb486299c4a0f24c6 (diff)
cell: fix build
compile fix for cell driver. Signed-off-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/cell')
-rw-r--r--src/gallium/drivers/cell/ppu/cell_screen.c3
-rw-r--r--src/gallium/drivers/cell/ppu/cell_texture.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_screen.c b/src/gallium/drivers/cell/ppu/cell_screen.c
index 363d1e65e7f..aaa16945c58 100644
--- a/src/gallium/drivers/cell/ppu/cell_screen.c
+++ b/src/gallium/drivers/cell/ppu/cell_screen.c
@@ -138,6 +138,9 @@ cell_is_format_supported( struct pipe_screen *screen,
unsigned tex_usage,
unsigned geom_flags )
{
+
+ struct sw_winsys *winsys = cell_screen(screen)->winsys;
+
if (tex_usage & (PIPE_TEXTURE_USAGE_DISPLAY_TARGET |
PIPE_TEXTURE_USAGE_SCANOUT |
PIPE_TEXTURE_USAGE_SHARED)) {
diff --git a/src/gallium/drivers/cell/ppu/cell_texture.c b/src/gallium/drivers/cell/ppu/cell_texture.c
index 5b169afaf88..6d746ebe0ae 100644
--- a/src/gallium/drivers/cell/ppu/cell_texture.c
+++ b/src/gallium/drivers/cell/ppu/cell_texture.c
@@ -105,7 +105,7 @@ cell_displaytarget_layout(struct pipe_screen *screen,
/* Round up the surface size to a multiple of the tile size?
*/
ct->dt = winsys->displaytarget_create(winsys,
- ct->base->tex_usage,
+ ct->base.tex_usage,
ct->base.format,
ct->base.width0,
ct->base.height0,