diff options
author | Pekka Paalanen <[email protected]> | 2008-11-12 22:37:01 +0200 |
---|---|---|
committer | Pekka Paalanen <[email protected]> | 2008-11-12 23:13:42 +0200 |
commit | 3086b1ecbe718d05bdf016e01cff9f5928c42e63 (patch) | |
tree | 6ad8e630440fc75d3eaa737ddda6d33ce012cb12 /src/gallium/drivers/nv04/nv04_miptree.c | |
parent | 5aaeb13a768f0c7d3706f6c170901b118ae1aa2d (diff) |
nv04..nv30: fix pipe_surface init
Signed-off-by: Pekka Paalanen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nv04/nv04_miptree.c')
-rw-r--r-- | src/gallium/drivers/nv04/nv04_miptree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv04/nv04_miptree.c b/src/gallium/drivers/nv04/nv04_miptree.c index 02f7d210e31..0cbb91e187b 100644 --- a/src/gallium/drivers/nv04/nv04_miptree.c +++ b/src/gallium/drivers/nv04/nv04_miptree.c @@ -109,6 +109,8 @@ nv04_miptree_surface_new(struct pipe_screen *pscreen, struct pipe_texture *pt, ps->nblocksx = pt->nblocksx[level]; ps->nblocksy = pt->nblocksy[level]; ps->stride = nv04mt->level[level].pitch; + ps->refcount = 1; + ps->winsys = pscreen->winsys; if (pt->target == PIPE_TEXTURE_CUBE) { ps->offset = nv04mt->level[level].image_offset[face]; |