diff options
Diffstat (limited to 'src/sna/gen6_common.h')
-rw-r--r-- | src/sna/gen6_common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sna/gen6_common.h b/src/sna/gen6_common.h index 49e241f2..b6197144 100644 --- a/src/sna/gen6_common.h +++ b/src/sna/gen6_common.h @@ -49,9 +49,6 @@ inline static bool can_switch_to_blt(struct sna *sna, if (NO_RING_SWITCH(sna)) return false; - if (flags & COPY_LAST) - return true; - if (bo && RQ_IS_BLT(bo->rq)) return true; @@ -61,6 +58,9 @@ inline static bool can_switch_to_blt(struct sna *sna, if (bo && RQ_IS_RENDER(bo->rq)) return false; + if (flags & COPY_LAST) + return true; + return kgem_ring_is_idle(&sna->kgem, KGEM_BLT); } |