summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2006-10-23 10:12:32 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2006-10-23 10:12:32 +0200
commit355fa6a5f01183ce2c6fadc7f1e8cb683b9adfd4 (patch)
tree7c660783fd2aadce68835193a9eb105fd231165c
parente82fa0766a2a7bcf090ad576cf0810c510a2942b (diff)
radeon: Repeat should always work with 1x1.
-rw-r--r--src/radeon_exa_render.c4
-rw-r--r--src/radeon_render.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c
index 4fc8089..54b0fe1 100644
--- a/src/radeon_exa_render.c
+++ b/src/radeon_exa_render.c
@@ -204,7 +204,7 @@ static Bool R100CheckCompositeTexture(PicturePtr pPict, int unit)
RADEON_FALLBACK(("Unsupported picture format 0x%x\n",
(int)pPict->format));
- if (pPict->repeat)
+ if (pPict->repeat && ((w != 1) || (h != 1)))
RADEON_FALLBACK(("Repeat unsupported (%dx%d)\n", w, h));
if (pPict->filter != PictFilterNearest &&
@@ -459,7 +459,7 @@ static Bool R200CheckCompositeTexture(PicturePtr pPict, int unit)
RADEON_FALLBACK(("Unsupported picture format 0x%x\n",
(int)pPict->format));
- if (pPict->repeat)
+ if (pPict->repeat && ((w != 1) || (h != 1)))
RADEON_FALLBACK(("Repeat unsupported (%dx%d)\n", w, h));
if (pPict->filter != PictFilterNearest &&
diff --git a/src/radeon_render.c b/src/radeon_render.c
index c0a20f5..7d761f1 100644
--- a/src/radeon_render.c
+++ b/src/radeon_render.c
@@ -393,7 +393,7 @@ static Bool FUNC_NAME(R100SetupTexture)(
ACCEL_PREAMBLE();
/* render repeat is broken - fix in stable tree by falling back */
- if (flags & XAA_RENDER_REPEAT)
+ if ((flags & XAA_RENDER_REPEAT) && ((width != 1) || (height != 1)))
return FALSE;
if ((width > 2048) || (height > 2048))
@@ -730,7 +730,7 @@ static Bool FUNC_NAME(R200SetupTexture)(
ACCEL_PREAMBLE();
/* render repeat is broken - fix in stable tree by falling back */
- if (flags & XAA_RENDER_REPEAT)
+ if ((flags & XAA_RENDER_REPEAT) && ((width != 1) || (height != 1)))
return FALSE;
if ((width > 2048) || (height > 2048))