summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/gen5_render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/gen5_render.c b/src/sna/gen5_render.c
index c7668b9f..703b3612 100644
--- a/src/sna/gen5_render.c
+++ b/src/sna/gen5_render.c
@@ -2355,7 +2355,7 @@ gen5_render_fill_boxes(struct sna *sna,
return FALSE;
}
- if (sna->kgem.mode == KGEM_BLT ||
+ if (sna->kgem.mode != KGEM_RENDER ||
dst->drawable.width > 8192 ||
dst->drawable.height > 8192 ||
!gen5_check_dst_format(format)) {
@@ -2497,7 +2497,7 @@ gen5_render_fill(struct sna *sna, uint8_t alu,
{
DBG(("%s(alu=%d, color=%08x)\n", __FUNCTION__, alu, color));
- if (sna->kgem.mode == KGEM_BLT &&
+ if (sna->kgem.mode != KGEM_RENDER &&
sna_blt_fill(sna, alu,
dst_bo, dst->drawable.bitsPerPixel,
color,