From 45530f39acc1741156c25520300f8e515ac43c33 Mon Sep 17 00:00:00 2001 From: Ruiling Song Date: Fri, 11 Apr 2014 14:48:17 +0800 Subject: [PATCH] Runtime: increase batch size to 8K. We met an assert on max_reloc in libdrm. So we simply work around it by increase the batch size, then libdrm could allow more bo relocations. This fix the the assert running ocl HaarFixture test under simd8. Signed-off-by: Ruiling Song Reviewed-by: Zhigang Gong --- src/intel/intel_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/intel_driver.c b/src/intel/intel_driver.c index cce033f..7fd2bf3 100644 --- a/src/intel/intel_driver.c +++ b/src/intel/intel_driver.c @@ -128,7 +128,7 @@ error: } /* just used for maximum relocation number in drm_intel */ -#define BATCH_SIZE 0x1000 +#define BATCH_SIZE 0x2000 static void intel_driver_memman_init(intel_driver_t *driver) -- 2.7.4