summaryrefslogtreecommitdiff
path: root/src/sna/gen4_render.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-09-11 10:18:51 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-09-11 10:20:28 +0100
commit0d05a69bd74dc02fb1360c9393de905b8842e1fe (patch)
tree8f2dfae5ffb725c3a6861123988459a79e7e7761 /src/sna/gen4_render.c
parent9a66d77efa53cff83e9711786c39e8ebff8dd26d (diff)
sna/gen4: Always try the BLT composite routines first
Given how fragile the render operations are, taking the hit from transitioning from the slow render operations to the comparatively fast BLT (when possible) is always worth it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen4_render.c')
-rw-r--r--src/sna/gen4_render.c28
1 files changed, 0 insertions, 28 deletions
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
@@ -1631,33 +1631,6 @@ gen4_composite_set_target(struct sna *sna,
}
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)
{
switch (picture->pSourcePict->type) {
@@ -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,