summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2005-02-09 00:45:16 +0000
committerFelix Kuehling <[email protected]>2005-02-09 00:45:16 +0000
commit799bc13da22e05b6554695988b16f2a79abea9d0 (patch)
tree3cc352887d7eb1ca262d342a16fc3d8c7c062f6c
parent4754fc653f43903265dc878f27826ebcf26dfdcb (diff)
Fixed stride of incomplete tiles.
-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 613a2712aee..49aedc41301 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++;