From: Brian Paul Date: Wed, 3 Sep 2008 19:31:14 +0000 (-0600) Subject: cell: add pipe_texture_reference() call in cell_get_tex_surface() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=439dca49920018e557d70b828f10aa815a8a9066;p=mesa.git cell: add pipe_texture_reference() call in cell_get_tex_surface() --- diff --git a/src/gallium/drivers/cell/ppu/cell_texture.c b/src/gallium/drivers/cell/ppu/cell_texture.c index 452ff132693..0fe525170be 100644 --- a/src/gallium/drivers/cell/ppu/cell_texture.c +++ b/src/gallium/drivers/cell/ppu/cell_texture.c @@ -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) *