summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv04
diff options
context:
space:
mode:
authorStephane Marchesin <[email protected]>2009-05-05 12:03:38 +0200
committerStephane Marchesin <[email protected]>2009-05-05 12:03:38 +0200
commit8edb50ff1e87f9bb00ceeaa2fe13df212a91eb11 (patch)
tree36ac2af8618e97199908543a78848db3611b9533 /src/gallium/drivers/nv04
parent39ebeead56bddfd339b6b6b31dd1b52d96859d65 (diff)
nv04: small fix again
Diffstat (limited to 'src/gallium/drivers/nv04')
-rw-r--r--src/gallium/drivers/nv04/nv04_miptree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv04/nv04_miptree.c b/src/gallium/drivers/nv04/nv04_miptree.c
index 4da833c25e8..93f752faec9 100644
--- a/src/gallium/drivers/nv04/nv04_miptree.c
+++ b/src/gallium/drivers/nv04/nv04_miptree.c
@@ -31,7 +31,8 @@ nv04_miptree_layout(struct nv04_miptree *nv04mt)
for (l = 0; l <= pt->last_level; l++) {
- nv04mt->level[l].image_offset = offset;
+ nv04mt->level[l].image_offset =
+ CALLOC(nr_faces, sizeof(unsigned));
offset += nv04mt->level[l].pitch * pt->height[l];
}