[Beignet] [PATCH 2/3] Runtime: increase batch size to 8K.

Ruiling Song ruiling.song at intel.com
Thu Apr 10 23:48:17 PDT 2014


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 at intel.com>
---
 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 2a2335b..f6a7d15 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)
-- 
1.7.10.4



More information about the Beignet mailing list