r300-gallium: Actually set stride when creating textures.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Thu, 12 Mar 2009 19:14:35 +0000 (12:14 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Mon, 16 Mar 2009 06:07:31 +0000 (23:07 -0700)
Duh.

src/gallium/drivers/r300/r300_texture.c

index ae388c73606da060fd6b090bb495678a796347a7..6cdea3d2854ff357f593021c487e346660f5f6b0 100644 (file)
@@ -74,6 +74,10 @@ static void r300_setup_miptree(struct r300_texture* tex)
 
         tex->offset[i] = (tex->size + 63) & ~63;
         tex->size = tex->offset[i] + size;
+
+        if (i == 0) {
+            tex->stride = stride;
+        }
     }
 }