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:
parent
464ef44ab1
commit
56126d0050
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue