cell: fix build
authorMarc Dietrich <marvin24@gmx.de>
Tue, 6 Apr 2010 21:44:08 +0000 (23:44 +0200)
committerBrian Paul <brianp@vmware.com>
Wed, 7 Apr 2010 02:23:21 +0000 (20:23 -0600)
compile fix for cell driver.

Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/cell/ppu/cell_screen.c
src/gallium/drivers/cell/ppu/cell_texture.c

index 363d1e65e7f5ae1dba201f0e4e04c68de5fda38b..aaa16945c580a67e51a1f5a708c065a35c9f6e5f 100644 (file)
@@ -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)) {
index 5b169afaf88005ea6541f253c16ec67277cf1ec2..6d746ebe0ae4f20c630d0cdded7117e907fd9d52 100644 (file)
@@ -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,