summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv10/nv10_miptree.c
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-06 14:06:39 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-02-06 14:06:39 -0800
commit2d6355495ce6f8668df3d9eb8825815bfead5401 (patch)
tree99482125bc874a4d6bd344e83950c0bb50dd6859 /src/gallium/drivers/nv10/nv10_miptree.c
parent5538323005a20d6911c7e51cb5f26b242c04a57c (diff)
parent776d86606cd8b250802730410d5e55a41944cf0a (diff)
Merge branch 'gallium-0.2' of git://anongit.freedesktop.org/mesa/mesa into gallium-0.2
Diffstat (limited to 'src/gallium/drivers/nv10/nv10_miptree.c')
-rw-r--r--src/gallium/drivers/nv10/nv10_miptree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv10/nv10_miptree.c b/src/gallium/drivers/nv10/nv10_miptree.c
index bbd4b1e15c..9616135461 100644
--- a/src/gallium/drivers/nv10/nv10_miptree.c
+++ b/src/gallium/drivers/nv10/nv10_miptree.c
@@ -68,6 +68,7 @@ nv10_miptree_blanket(struct pipe_screen *pscreen, const struct pipe_texture *pt,
mt->base = *pt;
mt->base.refcount = 1;
mt->base.screen = pscreen;
+ mt->level[0].pitch = stride[0];
mt->level[0].image_offset = CALLOC(1, sizeof(unsigned));
pipe_buffer_reference(pscreen, &mt->buffer, pb);