Runtime: increase batch size to 8K.
authorRuiling Song <ruiling.song@intel.com>
Fri, 11 Apr 2014 06:48:17 +0000 (14:48 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 16 Apr 2014 02:04:37 +0000 (10:04 +0800)
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 <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/intel/intel_driver.c

index cce033f..7fd2bf3 100644 (file)
@@ -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)