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_display.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_display.c')
-rw-r--r-- | src/sna/sna_display.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index f1a0b841..f59eed52 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -814,7 +814,7 @@ void sna_copy_fbcon(struct sna *sna) ok = sna->render.copy_boxes(sna, GXcopy, scratch, bo, sx, sy, sna->front, priv->gpu_bo, dx, dy, - &box, 1); + &box, 1, 0); if (!DAMAGE_IS_ALL(priv->gpu_damage)) sna_damage_add_box(&priv->gpu_damage, &box); @@ -2780,7 +2780,7 @@ sna_crtc_redisplay(xf86CrtcPtr crtc, RegionPtr region) if (sna->render.copy_boxes(sna, GXcopy, sna->front, sna_pixmap_get_bo(sna->front), 0, 0, &tmp, sna_crtc->bo, -tx, -ty, - REGION_RECTS(region), REGION_NUM_RECTS(region))) + REGION_RECTS(region), REGION_NUM_RECTS(region), 0)) return; } @@ -2909,7 +2909,8 @@ disable: sna->front, new, 0, 0, sna->front, old, 0, 0, REGION_RECTS(region), - REGION_NUM_RECTS(region)); + REGION_NUM_RECTS(region), + COPY_LAST); kgem_submit(&sna->kgem); sna_pixmap(sna->front)->gpu_bo = old; |