From ee27c8a5c3c1879e6e9d204f77b36198e90c509b Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Sun, 13 Apr 2008 16:56:38 -0400 Subject: [PATCH] Turn on wrapping when repeating on R100 + R200 Actually enable repeats for R100 and R200. This corresponds to a R300 change made in the patch in: http://bugs.freedesktop.org/show_bug.cgi?id=15333 --- src/radeon_exa_render.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c index a97b752..b3155ed 100644 --- a/src/radeon_exa_render.c +++ b/src/radeon_exa_render.c @@ -306,6 +306,9 @@ static Bool FUNC_NAME(R100TextureSetup)(PicturePtr pPict, PixmapPtr pPix, RADEON_FALLBACK(("Bad filter 0x%x\n", pPict->filter)); } + if (pPict->repeat) + txfilter |= RADEON_CLAMP_S_WRAP | RADEON_CLAMP_T_WRAP; + BEGIN_ACCEL(5); if (unit == 0) { OUT_ACCEL_REG(RADEON_PP_TXFILTER_0, txfilter); @@ -606,6 +609,9 @@ static Bool FUNC_NAME(R200TextureSetup)(PicturePtr pPict, PixmapPtr pPix, RADEON_FALLBACK(("Bad filter 0x%x\n", pPict->filter)); } + if (pPict->repeat) + txfilter |= R200_CLAMP_S_WRAP | R200_CLAMP_T_WRAP; + BEGIN_ACCEL(6); if (unit == 0) { OUT_ACCEL_REG(R200_PP_TXFILTER_0, txfilter); -- 1.5.4.5