diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-07-26 13:17:11 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-08-03 12:21:46 +0100 |
commit | cd028cad3dc9b059a3d83b818d581f86e16ec317 (patch) | |
tree | bec447515cc9ba0c37045a78119aa134071fed16 /src | |
parent | 4cd9ec9d404d934268952a1058afa07741b09efe (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.c | 2 |
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; |