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>
This commit is contained in:
Chris Wilson 2012-10-07 22:39:36 +01:00
parent 3ca7f8be5b
commit b41ecda69f
1 changed files with 1 additions and 1 deletions

View File

@ -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__,