diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-23 17:47:12 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-01-23 18:02:18 +0000 |
commit | ea8148b24d48db4f46205817db8a55dd6ea1a4b3 (patch) | |
tree | 049cad08931bfe1d887c4afc31fd19003bba33db /src/sna/gen7_render.c | |
parent | 3c3a87a2d4261cbd66602812637328a04787f510 (diff) |
sna/dri: Prefer to use the BLT ring for vsync'ed copies on IVB+
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/gen7_render.c')
-rw-r--r-- | src/sna/gen7_render.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c index 0766075a..fa36ce65 100644 --- a/src/sna/gen7_render.c +++ b/src/sna/gen7_render.c @@ -2564,12 +2564,11 @@ static inline bool prefer_blt_copy(struct sna *sna, struct kgem_bo *dst_bo, unsigned flags) { - if (flags & COPY_SYNC) - return false; - if (sna->kgem.ring == KGEM_BLT) return true; + assert((flags & COPY_SYNC) == 0); + if (src_bo == dst_bo && can_switch_to_blt(sna, dst_bo, flags)) return true; |