summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@huygens.home.fishsoup.net>2008-04-17 13:14:25 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2008-04-17 13:36:35 +0200
commiteeb7b74bb6c813b0e3afa4b704f6ffb0d0aab92b (patch)
tree2ac5c6d0e6320b68ce9fc9c56b9bf59221fd5760
parente511f39dfef503006cf249b9f6934091eaade9b5 (diff)
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
-rw-r--r--src/radeon_exa_render.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c
index 654ef197..e35cc176 100644
--- a/src/radeon_exa_render.c
+++ b/src/radeon_exa_render.c
@@ -308,6 +308,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);
@@ -617,6 +620,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);