--- radeon_render.c.KEM 2005-01-25 23:03:13.000000000 -0500 +++ radeon_render.c 2005-04-04 11:01:30.878694599 -0400 @@ -455,7 +455,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; } @@ -617,6 +617,7 @@ ACCEL_PREAMBLE(); +#if 0 /* R100 chips seem to have cache problems and do not reload small textures * from memory for small render areas. Thus we have to render a * 'sufficiently large' portion of the texture (may contain uninitialized @@ -705,6 +706,7 @@ FINISH_ACCEL(); #endif } +#endif /* Note: we can't simply set up the 3D surface at the same location as the * front buffer, because the 2048x2048 limit on coordinates may be smaller