summaryrefslogtreecommitdiff
path: root/src/sna/sna_io.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-04 17:40:58 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-04 17:40:58 +0100
commit54ee41bf05e328ed2f2cd2a64c21afe3efe2556a (patch)
tree5bbda36ff620b2f637c763a94a22bf9c5b2a56b6 /src/sna/sna_io.c
parentd36623aaebdc454bd281f34332edcad5d94f34c0 (diff)
sna: Pass a hint to the backends when using copy_boxes for readback
If we expect to only emit this set of copy_boxes() and then submit the batch, we would prefer to use the BLT for its lower latency. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_io.c')
-rw-r--r--src/sna/sna_io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sna/sna_io.c b/src/sna/sna_io.c
index 8d045484..ffa86b10 100644
--- a/src/sna/sna_io.c
+++ b/src/sna/sna_io.c
@@ -276,7 +276,7 @@ fallback:
if (!sna->render.copy_boxes(sna, GXcopy,
dst, src_bo, src_dx, src_dy,
&tmp, dst_bo, -tile.x1, -tile.y1,
- clipped, c-clipped)) {
+ clipped, c-clipped, COPY_LAST)) {
kgem_bo_destroy(&sna->kgem, dst_bo);
if (clipped != stack)
free(clipped);
@@ -316,7 +316,7 @@ fallback:
if (!sna->render.copy_boxes(sna, GXcopy,
dst, src_bo, src_dx, src_dy,
&tmp, dst_bo, -extents.x1, -extents.y1,
- box, nbox)) {
+ box, nbox, COPY_LAST)) {
kgem_bo_destroy(&sna->kgem, dst_bo);
goto fallback;
}
@@ -689,7 +689,7 @@ tile:
n = sna->render.copy_boxes(sna, GXcopy,
&tmp, src_bo, -tile.x1, -tile.y1,
dst, dst_bo, dst_dx, dst_dy,
- clipped, c - clipped);
+ clipped, c - clipped, 0);
else
n = 1;
@@ -736,7 +736,7 @@ tile:
n = sna->render.copy_boxes(sna, GXcopy,
&tmp, src_bo, -extents.x1, -extents.y1,
dst, dst_bo, dst_dx, dst_dy,
- box, nbox);
+ box, nbox, 0);
kgem_bo_destroy(&sna->kgem, src_bo);
@@ -973,7 +973,7 @@ fallback:
n = sna->render.copy_boxes(sna, GXcopy,
&tmp, src_bo, -extents.x1, -extents.y1,
dst, dst_bo, dst_dx, dst_dy,
- box, nbox);
+ box, nbox, 0);
kgem_bo_destroy(&sna->kgem, src_bo);
@@ -1144,7 +1144,7 @@ indirect_replace(struct sna *sna,
ret = sna->render.copy_boxes(sna, GXcopy,
pixmap, src_bo, 0, 0,
pixmap, bo, 0, 0,
- &box, 1);
+ &box, 1, 0);
kgem_bo_destroy(kgem, src_bo);