summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorCorbin Simpson <[email protected]>2009-07-26 22:48:20 -0700
committerCorbin Simpson <[email protected]>2009-07-26 22:48:20 -0700
commit7a10472f095ef0f9f6109ca17d8be16836e56509 (patch)
tree9502cc09268ea5dbd75aee26f4a01e3ca4334877 /src/gallium
parent725c1f004c9ec2f7b99146eecf0a35f1b3e54dca (diff)
r300g: Fix two trivial texture size issues.
Next thing to fix: progs/tests/mipgen.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 1e86020d1fc..daf1647bee8 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -87,7 +87,7 @@ static void r300_setup_miptree(struct r300_texture* tex)
size = stride * base->nblocksy[i] * base->depth[i];
tex->offset[i] = align(tex->size, 32);
- tex->size = tex->offset[i] + size;
+ tex->size += tex->offset[i] + size;
debug_printf("r300: Texture miptree: Level %d "
"(%dx%dx%d px, pitch %d bytes)\n",
@@ -120,7 +120,7 @@ static struct pipe_texture*
r300_setup_texture_state(tex, template->width[0], template->height[0],
template->width[0], template->last_level);
- tex->buffer = screen->buffer_create(screen, 64,
+ tex->buffer = screen->buffer_create(screen, 1024,
PIPE_BUFFER_USAGE_PIXEL,
tex->size);