diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-04 17:40:58 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-04 17:40:58 +0100 |
commit | 54ee41bf05e328ed2f2cd2a64c21afe3efe2556a (patch) | |
tree | 5bbda36ff620b2f637c763a94a22bf9c5b2a56b6 /src/sna/sna_tiling.c | |
parent | d36623aaebdc454bd281f34332edcad5d94f34c0 (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_tiling.c')
-rw-r--r-- | src/sna/sna_tiling.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/sna_tiling.c b/src/sna/sna_tiling.c index 27a9dc81..b20eceb8 100644 --- a/src/sna/sna_tiling.c +++ b/src/sna/sna_tiling.c @@ -659,7 +659,7 @@ sna_tiling_fill_boxes(struct sna *sna, if (!sna->render.copy_boxes(sna, GXcopy, dst, dst_bo, 0, 0, &tmp, bo, -dx, -dy, - REGION_RECTS(&this), REGION_NUM_RECTS(&this))) + REGION_RECTS(&this), REGION_NUM_RECTS(&this), 0)) goto err; RegionTranslate(&this, -dx, -dy); @@ -671,7 +671,7 @@ sna_tiling_fill_boxes(struct sna *sna, if (!sna->render.copy_boxes(sna, GXcopy, &tmp, bo, 0, 0, dst, dst_bo, dx, dy, - REGION_RECTS(&this), REGION_NUM_RECTS(&this))) + REGION_RECTS(&this), REGION_NUM_RECTS(&this), 0)) goto err; kgem_bo_destroy(&sna->kgem, bo); @@ -898,11 +898,11 @@ sna_tiling_copy_boxes(struct sna *sna, uint8_t alu, i = (sna->render.copy_boxes(sna, GXcopy, src, src_bo, src_dx, src_dy, &p, tmp_bo, -tile.x1, -tile.y1, - clipped, c - clipped) && + clipped, c - clipped, 0) && sna->render.copy_boxes(sna, alu, &p, tmp_bo, -tile.x1, -tile.y1, dst, dst_bo, dst_dx, dst_dy, - clipped, c - clipped)); + clipped, c - clipped, 0)); kgem_bo_destroy(&sna->kgem, tmp_bo); |