From: Felix Kuehling Date: Wed, 9 Feb 2005 00:45:16 +0000 (+0000) Subject: Fixed stride of incomplete tiles. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=799bc13da22e05b6554695988b16f2a79abea9d0;p=mesa.git Fixed stride of incomplete tiles. --- 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++;