mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 13:30:42 +01:00
nv40: init pipe_surface correctly
This commit is contained in:
parent
66eacb3fed
commit
e658950d4e
1 changed files with 2 additions and 0 deletions
|
|
@ -123,6 +123,8 @@ nv40_miptree_surface_new(struct pipe_screen *pscreen, struct pipe_texture *pt,
|
|||
ps->stride = mt->level[level].pitch;
|
||||
ps->usage = flags;
|
||||
ps->status = PIPE_SURFACE_STATUS_DEFINED;
|
||||
ps->refcount = 1;
|
||||
ps->winsys = pscreen->winsys;
|
||||
|
||||
if (pt->target == PIPE_TEXTURE_CUBE) {
|
||||
ps->offset = mt->level[level].image_offset[face];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue