--- radeon_render.c.KEM 2005-01-27 12:10:14.000000000 -0500 +++ radeon_render.c 2005-04-12 11:54:31.935225143 -0400 @@ -429,8 +429,13 @@ #endif ACCEL_PREAMBLE(); - if ((width > 2048) || (height > 2048)) - return FALSE; + if (flags & XAA_RENDER_REPEAT) { + if ((width > 2048) || (height > 2048)) + return FALSE; + } else { + if ((width > 2047) || (height > 2047)) + return FALSE; + } txformat = RadeonGetTextureFormat(format); tex_bytepp = PICT_FORMAT_BPP(format) >> 3; @@ -457,7 +462,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; }