summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-04 12:56:31 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-04 12:56:31 +0000
commitf6cc73ba66f34d190b7c17421a62aa1256698431 (patch)
tree979019e4c98200806a5af3797620f8f2d526ecac
parent227fbb90c4884bbc58c6c0cfff9663ec9ca54171 (diff)
sna: The batch is counted in dwords, not bytes!
Yikes, I choose the wrong units for the max_batch_size. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-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 6db2e928..d34fbd57 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -520,7 +520,7 @@ void kgem_init(struct kgem *kgem, int fd, struct pci_device *dev, int gen)
kgem->max_batch_size = ARRAY_SIZE(kgem->batch);
if (gen == 22)
/* 865g cannot handle a batch spanning multiple pages */
- kgem->max_batch_size = 4096;
+ kgem->max_batch_size = PAGE_SIZE / sizeof(uint32_t);
kgem->half_cpu_cache_pages = cpu_cache_size() >> 13;