summaryrefslogtreecommitdiff
path: root/src/sna/kgem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/kgem.c')
-rw-r--r--src/sna/kgem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 8c9cb6cf..6f33ed50 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -838,7 +838,7 @@ void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen)
kgem->batch_size = PAGE_SIZE / sizeof(uint32_t);
if (gen >= 70 && gen < 80)
kgem->batch_size = 16*1024;
- if (!kgem->has_relaxed_delta)
+ if (!kgem->has_relaxed_delta && kgem->batch_size > 4*1024)
kgem->batch_size = 4*1024;
DBG(("%s: maximum batch size? %d\n", __FUNCTION__,