From c19aa4fc8da7ac4745624098b146bcc42c0436dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 12 Feb 2009 19:22:12 +0100 Subject: EXA: The source tiling code can't handle RepeatReflect yet. --- src/radeon_exa_render.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/radeon_exa_render.c') diff --git a/src/radeon_exa_render.c b/src/radeon_exa_render.c index a8d99ec7..c44502c1 100644 --- a/src/radeon_exa_render.c +++ b/src/radeon_exa_render.c @@ -284,7 +284,7 @@ static Bool RADEONSetupSourceTile(PicturePtr pPict, info->accel_state->need_src_tile_x = info->accel_state->need_src_tile_y = FALSE; info->accel_state->src_tile_width = info->accel_state->src_tile_height = 65536; /* "infinite" */ - if (pPict->repeat && pPict->repeatType == RepeatNormal) { + if (pPict->repeat && pPict->repeatType != RepeatPad) { Bool badPitch = needMatchingPitch && !RADEONPitchMatches(pPix); int w = pPict->pDrawable->width; @@ -297,7 +297,12 @@ static Bool RADEONSetupSourceTile(PicturePtr pPict, } else { info->accel_state->need_src_tile_x = (w & (w - 1)) != 0 || badPitch; info->accel_state->need_src_tile_y = (h & (h - 1)) != 0; - + + if ((info->accel_state->need_src_tile_x || + info->accel_state->need_src_tile_y) && + pPict->repeatType != RepeatNormal) + RADEON_FALLBACK(("Can only tile RepeatNormal at this time\n")); + if (!canTile1d) info->accel_state->need_src_tile_x = info->accel_state->need_src_tile_y = -- cgit v1.2.3