diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-06-29 11:40:18 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-06-29 11:40:18 +0100 |
commit | 4061f05dd61a7200d91d30b9b4a2ab0c61306870 (patch) | |
tree | adf477ae236b91a96d04f4eb8947769cc6c9f721 /src/sna/sna_trapezoids.c | |
parent | 44e41536b7728c03a4899a97242960ae7ed35624 (diff) |
sna/trapezoids: Write unaligned fallback boxes inplace
As this is a pure write operation (though we will write the edge pixels
twice) we can perform this operation inplace and incur a slightly slower
trap creation at the benefit of avoiding the later copy.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids.c')
-rw-r--r-- | src/sna/sna_trapezoids.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c index 72dcd3ef..7bbe2708 100644 --- a/src/sna/sna_trapezoids.c +++ b/src/sna/sna_trapezoids.c @@ -3582,7 +3582,7 @@ composite_unaligned_boxes_fallback(CARD8 op, scratch = sna_pixmap_create_upload(screen, extents.x2 - extents.x1, extents.y2 - extents.y1, - 8, KGEM_BUFFER_WRITE); + 8, KGEM_BUFFER_WRITE_INPLACE); if (!scratch) continue; |