summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-02-27 16:17:15 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-02-27 16:17:15 -0700
commitd612b6fa9b5674e001755265e37924815646ad1a (patch)
tree1dfc8d682794546bab7002f558cf2249dd0efa0a /src/gallium/drivers
parentdacf91fe587a777eed95b9767bc6b4ccdc7de71c (diff)
cell: fix minor get_tex_surface() breakage
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/cell/ppu/cell_texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_texture.c b/src/gallium/drivers/cell/ppu/cell_texture.c
index 28cadad6ed..bf6f6d3058 100644
--- a/src/gallium/drivers/cell/ppu/cell_texture.c
+++ b/src/gallium/drivers/cell/ppu/cell_texture.c
@@ -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);