summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-05-05 18:17:01 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-05-06 06:59:19 +0100
commit56126d00503fd9bc6fe30781ecddb2fb67de817b (patch)
tree8d77972adbbf06bdb330d144aa248936a7e775d8 /src
parent464ef44ab1d691a4bffecbe88be8182adf9fd4ff (diff)
sna: Refine hints to allow inplace writes whilst compositing aligned traps
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_trapezoids_boxes.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/sna/sna_trapezoids_boxes.c b/src/sna/sna_trapezoids_boxes.c
index 898efb5e..335b2ceb 100644
--- a/src/sna/sna_trapezoids_boxes.c
+++ b/src/sna/sna_trapezoids_boxes.c
@@ -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;