xf86-video-intel: src/sna/kgem.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Jan 4 04:58:37 PST 2012


 src/sna/kgem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f6cc73ba66f34d190b7c17421a62aa1256698431
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Jan 4 12:56:31 2012 +0000

    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 at chris-wilson.co.uk>

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 6db2e92..d34fbd5 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;
 


More information about the xorg-commit mailing list