sna: Refine hints to allow inplace writes whilst compositing aligned traps

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-05-05 18:17:01 +01:00
parent 464ef44ab1
commit 56126d0050
1 changed files with 5 additions and 2 deletions

View File

@ -209,8 +209,11 @@ composite_aligned_boxes(struct sna *sna,
__FUNCTION__));
flags = MOVE_READ | MOVE_WRITE;
if (n == 1 && op <= PictOpSrc)
flags = MOVE_WRITE | MOVE_INPLACE_HINT;
if (op <= PictOpSrc) {
flags |= MOVE_INPLACE_HINT;
if (n == 1)
flags &= ~MOVE_READ;
}
if (!sna_drawable_move_region_to_cpu(dst->pDrawable, &clip, flags))
goto done;