From: Zhigang Gong Date: Mon, 9 Jun 2014 10:39:00 +0000 (+0800) Subject: GBE: increase batch size to relax the max reloc restriction. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=188626de3390261c9ba089d7c2085b81218d319f;p=contrib%2Fbeignet.git GBE: increase batch size to relax the max reloc restriction. The drm will restrict the max reloc to (batch size)/8. Current batch buffer size is 8K, then the max reloc is 1024. As the max workgroup size is 1024, if it uses simd16 channel then the thread_n will be 1024/16 = 64. And if it need to bind 32 buffers, then the reloc count will be 64*32 which is 2048 and exceed current limitation. Let's increase the batch size to 16K to relax this restrication to 2048 relocs. Signed-off-by: Zhigang Gong Reviewed-by: "Yang, Rong R" --- diff --git a/src/intel/intel_driver.c b/src/intel/intel_driver.c index 989193a..bb2f9b2 100644 --- a/src/intel/intel_driver.c +++ b/src/intel/intel_driver.c @@ -129,7 +129,7 @@ error: } /* just used for maximum relocation number in drm_intel */ -#define BATCH_SIZE 0x2000 +#define BATCH_SIZE 0x4000 static void intel_driver_memman_init(intel_driver_t *driver)