diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-03-12 12:14:35 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-03-15 23:07:31 -0700 |
commit | 7c204c975381b0ef4a7693827ffc4ff904de991c (patch) | |
tree | 7cc07cb89310e9d448fc744bc419557669eb67f5 /src/gallium/drivers/r300 | |
parent | 61c65a6c7e809e61bfaf5f84240bfc62d5adcf52 (diff) |
r300-gallium: Actually set stride when creating textures.
Duh.
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r-- | 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 ae388c7360..6cdea3d285 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; + } } } |