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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/gen7_render.c b/src/sna/gen7_render.c
index 37eb8dd9..e9295299 100644
--- a/src/sna/gen7_render.c
+++ b/src/sna/gen7_render.c
@@ -3349,7 +3349,8 @@ static inline bool prefer_blt_fill(struct sna *sna,
struct kgem_bo *bo,
unsigned flags)
{
- if (flags & (FILL_POINTS | FILL_SPANS))
+ if (flags & (FILL_POINTS | FILL_SPANS) &&
+ can_switch_to_blt(sna, bo, 0))
return true;
if (untiled_tlb_miss(bo))