summaryrefslogtreecommitdiff
path: root/src/sna/gen7_render.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/gen7_render.c')
-rw-r--r--src/sna/gen7_render.c5
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;