summaryrefslogtreecommitdiff
path: root/src/sna/gen6_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/gen6_common.h')
-rw-r--r--src/sna/gen6_common.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/gen6_common.h b/src/sna/gen6_common.h
index 898cda80..83adc7d7 100644
--- a/src/sna/gen6_common.h
+++ b/src/sna/gen6_common.h
@@ -46,9 +46,6 @@ inline static bool can_switch_to_blt(struct sna *sna,
if (sna->kgem.ring != KGEM_RENDER)
return true;
- if (NO_RING_SWITCH(sna))
- return false;
-
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 (NO_RING_SWITCH(sna))
+ return false;
+
if (flags & COPY_LAST)
return true;
@@ -207,7 +207,7 @@ prefer_blt_fill(struct sna *sna, struct kgem_bo *bo, unsigned flags)
if (!prefer_blt_ring(sna, bo, 0))
return false;
} else {
- if (can_switch_to_blt(sna, bo, 0))
+ if (can_switch_to_blt(sna, bo, COPY_LAST))
return true;
}