Mesa (master): r300-gallium: Actually set stride when creating textures.

Corbin Simpson csimpson at kemper.freedesktop.org
Mon Mar 16 06:16:38 UTC 2009


Module: Mesa
Branch: master
Commit: 7c204c975381b0ef4a7693827ffc4ff904de991c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c204c975381b0ef4a7693827ffc4ff904de991c

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Thu Mar 12 12:14:35 2009 -0700

r300-gallium: Actually set stride when creating textures.

Duh.

---

 src/gallium/drivers/r300/r300_texture.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index ae388c7..6cdea3d 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -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;
+        }
     }
 }
 




More information about the mesa-commit mailing list