summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-10-07 22:39:36 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-10-07 22:39:36 +0100
commitb41ecda69f2e6c9f8adf79dd24ded45740bcc015 (patch)
tree09274f9a3cf186d98cf2976fba756aa496ee84cd /src
parent3ca7f8be5bcfec3c50c43bd485f0c57b931f8206 (diff)
sna: Only reduce the maximum batch size for old kernels
Be careful we not increase the batch size to span multiple pages on 865g! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-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__,