summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))