cell: fix minor get_tex_surface() breakage
authorBrian <brian.paul@tungstengraphics.com>
Wed, 27 Feb 2008 23:17:15 +0000 (16:17 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Wed, 27 Feb 2008 23:17:15 +0000 (16:17 -0700)
src/gallium/drivers/cell/ppu/cell_texture.c

index 28cadad6ed2a6a8f68b5daafaa8bd32154b926f8..bf6f6d3058cdf3b4d3b9cbb30ec378588686abc7 100644 (file)
@@ -210,6 +210,7 @@ static void
 cell_tile_texture(struct cell_context *cell,
                   struct cell_texture *texture)
 {
+   struct pipe_screen *screen = cell->pipe.screen;
    uint face = 0, level = 0, zslice = 0;
    struct pipe_surface *surf;
    const uint w = texture->base.width[0], h = texture->base.height[0];
@@ -221,7 +222,7 @@ cell_tile_texture(struct cell_context *cell,
    assert(w % TILE_SIZE == 0);
    assert(h % TILE_SIZE == 0);
 
-   surf = cell_get_tex_surface(&cell->pipe, &texture->base, face, level, zslice);
+   surf = screen->get_tex_surface(screen, &texture->base, face, level, zslice);
    ASSERT(surf);
 
    src = (const uint *) pipe_surface_map(surf);