xf86-video-ati: Branch 'master'

Alex Deucher agd5f at kemper.freedesktop.org
Thu Apr 16 08:21:26 PDT 2009


 src/radeon_exa_render.c |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 573339114660f06e5f257648ba413bab0d6083ce
Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Thu Apr 16 11:19:01 2009 -0400

    R3xx/R4xx EXA: set explicit tex cache regions
    
    When using a mask, set explicit cache partitions for
    each texture.  Gives 1% performance improvement in
    x11perf with anti-aliased text.

diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c
index 571204a..831a6ff 100644
--- a/src/radeon_exa_render.c
+++ b/src/radeon_exa_render.c
@@ -1077,6 +1077,13 @@ static Bool FUNC_NAME(R300TextureSetup)(PicturePtr pPict, PixmapPtr pPix,
 
     txformat1 = R300TexFormats[i].card_fmt;
 
+    if (IS_R300_3D) {
+	if ((unit == 0) && info->accel_state->has_mask)
+	    txformat1 |= R300_TX_FORMAT_CACHE_HALF_REGION_0;
+	else if (unit == 1)
+	    txformat1 |= R300_TX_FORMAT_CACHE_HALF_REGION_1;
+    }
+
     txformat0 = ((((w - 1) & 0x7ff) << R300_TXWIDTH_SHIFT) |
 		 (((h - 1) & 0x7ff) << R300_TXHEIGHT_SHIFT));
 


More information about the xorg-commit mailing list