summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-26 13:17:11 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-03 12:21:46 +0100
commitcd028cad3dc9b059a3d83b818d581f86e16ec317 (patch)
treebec447515cc9ba0c37045a78119aa134071fed16 /src
parent4cd9ec9d404d934268952a1058afa07741b09efe (diff)
sna: Limit the batch size on all gen7 variants
Seems the limit on the surface state size is common across the family 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 635dd24c..d7458eca 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -811,7 +811,7 @@ void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen)
if (gen == 22)
/* 865g cannot handle a batch spanning multiple pages */
kgem->batch_size = PAGE_SIZE / sizeof(uint32_t);
- if (gen == 70)
+ if (gen >= 70 && gen < 80)
kgem->batch_size = 16*1024;
if (!kgem->has_relaxed_delta)
kgem->batch_size = 4*1024;