diff options
author | Ben Skeggs <[email protected]> | 2008-06-29 13:26:04 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-06-29 15:00:28 +1000 |
commit | b6478021d572d9ec30212d6e6992496ee4cf347d (patch) | |
tree | 99fd64089ed7dff15f5a6a7c60c17f4bad3a3e45 /src/gallium/drivers/nv50/nv50_miptree.c | |
parent | cc8e628563a1cfb26752bc014a75f3087cd8986d (diff) |
nouveau: adapt to cpp->pf_block changes
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_miptree.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_miptree.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_miptree.c b/src/gallium/drivers/nv50/nv50_miptree.c index ccb916d6acc..6c838998fd0 100644 --- a/src/gallium/drivers/nv50/nv50_miptree.c +++ b/src/gallium/drivers/nv50/nv50_miptree.c @@ -72,10 +72,12 @@ nv50_miptree_surface_new(struct pipe_screen *pscreen, struct pipe_texture *pt, pipe_buffer_reference(ws, &ps->buffer, mt->buffer); ps->format = pt->format; - ps->cpp = pt->cpp; ps->width = pt->width[level]; ps->height = pt->height[level]; - ps->pitch = ps->width; + ps->block = pt->block; + ps->nblocksx = pt->nblocksx[level]; + ps->nblocksy = pt->nblocksy[level]; + ps->stride = ps->width * ps->block.size; ps->offset = 0; return ps; |