nouveau: Frontbuffer pitch needs to be set.
authorYounes Manton <younes.m@gmail.com>
Fri, 6 Feb 2009 19:33:49 +0000 (14:33 -0500)
committerYounes Manton <younes.m@gmail.com>
Fri, 6 Feb 2009 19:33:49 +0000 (14:33 -0500)
src/gallium/drivers/nv04/nv04_miptree.c
src/gallium/drivers/nv10/nv10_miptree.c
src/gallium/drivers/nv20/nv20_miptree.c
src/gallium/drivers/nv30/nv30_miptree.c
src/gallium/drivers/nv40/nv40_miptree.c

index fd908491e983e292b90da7771929745146971779..993c5ef5dd261400d06dea51248dc62a81a9fbf4 100644 (file)
@@ -87,6 +87,7 @@ nv04_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);
index bbd4b1e15cf1f3795dac3197953b1d5c32e96bd2..9616135461792c4a433465034f8b91419d09a0e6 100644 (file)
@@ -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);
index c1155682dc62b8e81c4e6be0b6d17d82b4b975d4..ef7e9c5428ed9a2ee31a0a25fdd77db22da98b60 100644 (file)
@@ -68,6 +68,7 @@ nv20_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);
index 5458f834aac2904a792daf586facda37bd50f982..23f88293219b56b6458f3cf00660b69f37c56284 100644 (file)
@@ -123,6 +123,7 @@ nv30_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);
index e8cd104ea444ecf400b93737a1be81731add9f15..9bef23ad1f6f9c06bfcbf68272fea7b5f0843bbe 100644 (file)
@@ -124,6 +124,7 @@ nv40_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);