From 914327f40d07a3f7c069752ce005bf8e21352b03 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 20 Jul 2006 17:58:07 -0400 Subject: [PATCH] Disable drawing to PICT_a8, and turn on support for non-extended repeats. We don't know what COLOR_BUF_8BIT does, so it's disabled for now while we're stabilizing the code. The non-extended repeats appear to be working according to the rendercheck tests on a8 and a8r8g8b8 sources. Masks continue to hang the card, as before this change. --- src/i915_exa_render.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/i915_exa_render.c b/src/i915_exa_render.c index 795c0765..36e6c807 100644 --- a/src/i915_exa_render.c +++ b/src/i915_exa_render.c @@ -138,9 +138,16 @@ static Bool I915GetDestFormat(PicturePtr pDstPicture, CARD32 *dst_format) case PICT_x1r5g5b5: *dst_format = COLR_BUF_ARGB1555; break; + /* COLR_BUF_8BIT is special for YUV surfaces. While we may end up being + * able to use it depending on how the hardware implements it, disable it + * for now while we don't know what exactly it does (what channel does it + * read from? + */ + /* case PICT_a8: *dst_format = COLR_BUF_8BIT; break; + */ case PICT_a4r4g4b4: case PICT_x4r4g4b4: *dst_format = COLR_BUF_ARGB4444; @@ -171,9 +178,9 @@ static Bool I915CheckCompositeTexture(PicturePtr pPict, int unit) I830FALLBACK("Unsupported picture format 0x%x\n", (int)pPict->format); - /* FIXME: fix repeat support */ - if (pPict->repeat) - I830FALLBACK("repeat not support now!\n"); + if (pPict->repeat && pPict->repeatType != RepeatNormal) + I830FALLBACK("extended repeat (%d) not supported\n", + pPict->repeatType); if (pPict->filter != PictFilterNearest && pPict->filter != PictFilterBilinear)