diff options
author | Brian Paul <[email protected]> | 2008-09-03 13:31:14 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-09-03 13:35:06 -0600 |
commit | 439dca49920018e557d70b828f10aa815a8a9066 (patch) | |
tree | dff9646ab581bc099ef1eb790100af029bf92392 /src/gallium | |
parent | b035c85b3e3eaae071f1401f23be40b16cdee34f (diff) |
cell: add pipe_texture_reference() call in cell_get_tex_surface()
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_texture.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) * |