cell: add pipe_texture_reference() call in cell_get_tex_surface()
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 3 Sep 2008 19:31:14 +0000 (13:31 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 3 Sep 2008 19:35:06 +0000 (13:35 -0600)
src/gallium/drivers/cell/ppu/cell_texture.c

index 452ff1326931c9ba20244ae00e1cc1294a6c929b..0fe525170bed079c2325a43173bad6b71e925487 100644 (file)
@@ -187,6 +187,10 @@ cell_get_tex_surface(struct pipe_screen *screen,
 
       /* XXX may need to override usage flags (see sp_texture.c) */
 
+      pipe_texture_reference(&ps->texture, pt); 
+      ps->face = face;
+      ps->level = level;
+      ps->zslice = zslice;
 
       if (pt->target == PIPE_TEXTURE_CUBE || pt->target == PIPE_TEXTURE_3D) {
         ps->offset += ((pt->target == PIPE_TEXTURE_CUBE) ? face : zslice) *