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:
parent
3ca7f8be5b
commit
b41ecda69f
|
|
@ -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__,
|
||||
|
|
|
|||
Loading…
Reference in New Issue