summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_texture.c
diff options
context:
space:
mode:
authorJoakim Sindholt <[email protected]>2009-02-05 22:23:40 +0100
committerCorbin Simpson <[email protected]>2009-02-05 13:37:29 -0800
commit402d45d99b4533140aa706300da3154af2f376f0 (patch)
treec9b68b714a458124f4246178b9ab1b2fe6468ef7 /src/gallium/drivers/r300/r300_texture.c
parentbe53dfa3b9ca4d1503fdbdf934569442175e30ef (diff)
r300: working trivial/clear for r5xx
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 537425c1e2f..f9ad14f12be 100644
--- a/src/gallium/drivers/r300/r300_texture.c
+++ b/src/gallium/drivers/r300/r300_texture.c
@@ -44,11 +44,11 @@ static void r300_setup_miptree(struct r300_texture* tex)
/* Radeons enjoy things in multiples of 32. */
/* XXX NPOT -> 64, not 32 */
- stride = (base->nblocksx[i] * base->block.size + 31) & ~31;
+ stride = (base->nblocksx[i] * base->block.size + 63) & ~63;
size = stride * base->nblocksy[i] * base->depth[i];
/* XXX 64 for NPOT */
- tex->offset[i] = (tex->size + 31) & ~31;
+ tex->offset[i] = (tex->size + 63) & ~63;
tex->size = tex->offset[i] + size;
}
}
@@ -72,7 +72,7 @@ static struct pipe_texture*
r300_setup_miptree(tex);
- tex->buffer = screen->buffer_create(screen, 32,
+ tex->buffer = screen->buffer_create(screen, 63,
PIPE_BUFFER_USAGE_PIXEL,
tex->size);
@@ -130,7 +130,7 @@ static struct pipe_surface* r300_get_tex_surface(struct pipe_screen* screen,
surface->nblocksy = texture->nblocksy[level];
/* XXX save the actual stride instead plz kthnxbai */
surface->stride =
- (texture->nblocksx[level] * texture->block.size + 31) & ~31;
+ (texture->nblocksx[level] * texture->block.size + 63) & ~63;
surface->offset = offset;
surface->usage = flags;
surface->status = PIPE_SURFACE_STATUS_DEFINED;