Blob Blame History Raw
--- xf86-video-ati-6.6.3/src/radeon_render.c.jx	2006-10-03 11:00:42.000000000 -0400
+++ xf86-video-ati-6.6.3/src/radeon_render.c	2007-06-18 11:27:55.000000000 -0400
@@ -396,7 +396,7 @@
     if (flags & XAA_RENDER_REPEAT)
 	return FALSE;
 
-    if ((width > 2048) || (height > 2048))
+    if ((width > 2047) || (height > 2047))
 	return FALSE;
 
     txformat = RadeonGetTextureFormat(format);
@@ -424,7 +424,7 @@
 	txformat |= ATILog2(width) << RADEON_TXFORMAT_WIDTH_SHIFT;
 	txformat |= ATILog2(height) << RADEON_TXFORMAT_HEIGHT_SHIFT;
     } else {
-	tex_size = ((height - 1) << 16) | (width - 1);
+	tex_size = (height << 16) | width;
 	txformat |= RADEON_TXFORMAT_NON_POWER2;
     }