Fixed stride of incomplete tiles.
authorFelix Kuehling <fxkuehl@gmx.de>
Wed, 9 Feb 2005 00:45:16 +0000 (00:45 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Wed, 9 Feb 2005 00:45:16 +0000 (00:45 +0000)
src/mesa/drivers/dri/savage/savagetex.c

index 613a2712aee00d27a1e29b99fe98a3b5af82baf6..49aedc41301728383633e8c8a83a05589e16b96d 100644 (file)
@@ -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++;