sna/gen3: Look harder to see if we can indeed use the BLT for composite

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-03-14 10:30:47 +00:00
parent d23ee0380b
commit 63eeb98463
1 changed files with 1 additions and 3 deletions

View File

@ -2744,15 +2744,13 @@ gen3_render_composite(struct sna *sna,
width, height,
tmp);
memset(&tmp->u.gen3, 0, sizeof(tmp->u.gen3));
if (!gen3_composite_set_target(sna, tmp, dst)) {
DBG(("%s: unable to set render target\n",
__FUNCTION__));
return FALSE;
}
if (mask == NULL && sna->kgem.mode == KGEM_BLT &&
if (mask == NULL && sna->kgem.mode != KGEM_RENDER &&
sna_blt_composite(sna, op,
src, dst,
src_x, src_y,