diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-04 12:56:31 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-04 12:56:31 +0000 |
commit | f6cc73ba66f34d190b7c17421a62aa1256698431 (patch) | |
tree | 979019e4c98200806a5af3797620f8f2d526ecac | |
parent | 227fbb90c4884bbc58c6c0cfff9663ec9ca54171 (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.c | 2 |
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; |