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