diff options
author | Pekka Paalanen <pq@iki.fi> | 2008-11-12 22:37:01 +0200 |
---|---|---|
committer | Pekka Paalanen <pq@iki.fi> | 2008-11-12 23:13:42 +0200 |
commit | 3086b1ecbe718d05bdf016e01cff9f5928c42e63 (patch) | |
tree | 6ad8e630440fc75d3eaa737ddda6d33ce012cb12 /src/gallium/drivers/nv20 | |
parent | 5aaeb13a768f0c7d3706f6c170901b118ae1aa2d (diff) |
nv04..nv30: fix pipe_surface initgallium-0.2
Signed-off-by: Pekka Paalanen <pq@iki.fi>
Diffstat (limited to 'src/gallium/drivers/nv20')
-rw-r--r-- | src/gallium/drivers/nv20/nv20_miptree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv20/nv20_miptree.c b/src/gallium/drivers/nv20/nv20_miptree.c index b014f4c22..c6106d58c 100644 --- a/src/gallium/drivers/nv20/nv20_miptree.c +++ b/src/gallium/drivers/nv20/nv20_miptree.c @@ -116,6 +116,8 @@ nv20_miptree_surface_get(struct pipe_screen *screen, struct pipe_texture *pt, ps->stride = nv20mt->level[level].pitch; ps->usage = flags; ps->status = PIPE_SURFACE_STATUS_DEFINED; + ps->refcount = 1; + ps->winsys = screen->winsys; if (pt->target == PIPE_TEXTURE_CUBE) { ps->offset = nv20mt->level[level].image_offset[face]; |