From 7c204c975381b0ef4a7693827ffc4ff904de991c Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Thu, 12 Mar 2009 12:14:35 -0700 Subject: r300-gallium: Actually set stride when creating textures. Duh. --- src/gallium/drivers/r300/r300_texture.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index ae388c73606..6cdea3d2854 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; + } } } -- cgit v1.2.3