mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 00:00:25 +01:00
cell: add pipe_texture_reference() call in cell_get_tex_surface()
This commit is contained in:
parent
b035c85b3e
commit
439dca4992
1 changed files with 4 additions and 0 deletions
|
|
@ -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) *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue