From df14b285be44f0c40a718bb8ae09a9558b1eb2c7 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 20 Jul 2012 14:35:28 +0100 Subject: [PATCH] sna/gen6: Prefer the more flexible render ring for large surfaces Signed-off-by: Chris Wilson --- src/sna/gen6_render.c | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/sna/gen6_render.c b/src/sna/gen6_render.c index 044a9f99..d4783e06 100644 --- a/src/sna/gen6_render.c +++ b/src/sna/gen6_render.c @@ -2397,27 +2397,8 @@ try_blt(struct sna *sna, return true; } - if (too_large(dst->pDrawable->width, dst->pDrawable->height)) { - DBG(("%s: dst too large for 3D pipe (%d, %d)\n", - __FUNCTION__, - dst->pDrawable->width, dst->pDrawable->height)); + if (can_switch_rings(sna) && sna_picture_is_solid(src, NULL)) return true; - } - - if (src->pDrawable && - too_large(src->pDrawable->width, src->pDrawable->height)) { - DBG(("%s: src too large for 3D pipe (%d, %d)\n", - __FUNCTION__, - src->pDrawable->width, src->pDrawable->height)); - return true; - } - - if (can_switch_rings(sna)) { - if (sna_picture_is_solid(src, NULL)) - return true; - if (src->pDrawable) - return true; - } return false; }