summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/savage/savagetex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/savage/savagetex.c b/src/mesa/drivers/dri/savage/savagetex.c
index 613a2712ae..49aedc4130 100644
--- a/src/mesa/drivers/dri/savage/savagetex.c
+++ b/src/mesa/drivers/dri/savage/savagetex.c
@@ -278,7 +278,7 @@ static void savageUploadTexLevel( savageTexObjPtr t, int level )
bpp, src, width * bpp, dest);
}
src += tileInfo->width * bpp;
- dest += 2048; /* tile size is always 2k */
+ dest += tileInfo->width * bpp * height;
if (dirtyMask == 1<<31) {
dirtyMask = 1;
dirtyPtr++;