diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c index fb56d85d..3158b585 100644 --- a/src/sna/gen4_render.c +++ b/src/sna/gen4_render.c @@ -1630,33 +1630,6 @@ gen4_composite_set_target(struct sna *sna, return true; } -static bool -try_blt(struct sna *sna, - PicturePtr dst, PicturePtr src, - int width, int height) -{ - if (sna->kgem.mode != KGEM_RENDER) { - DBG(("%s: already performing BLT\n", __FUNCTION__)); - return true; - } - - if (too_large(width, height)) { - DBG(("%s: operation too large for 3D pipe (%d, %d)\n", - __FUNCTION__, width, height)); - return true; - } - - if (too_large(dst->pDrawable->width, dst->pDrawable->height)) - return true; - - /* The blitter is much faster for solids */ - if (sna_picture_is_solid(src, NULL)) - return true; - - /* is the source picture only in cpu memory e.g. a shm pixmap? */ - return picture_is_cpu(sna, src); -} - static bool check_gradient(PicturePtr picture, bool precise) { @@ -1885,7 +1858,6 @@ gen4_render_composite(struct sna *sna, return false; if (mask == NULL && - try_blt(sna, dst, src, width, height) && sna_blt_composite(sna, op, src, dst, src_x, src_y,