From 799bc13da22e05b6554695988b16f2a79abea9d0 Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Wed, 9 Feb 2005 00:45:16 +0000 Subject: Fixed stride of incomplete tiles. --- src/mesa/drivers/dri/savage/savagetex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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++; -- cgit v1.2.3