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