From: Pan Xiuli <xiuli....@intel.com>

The scrach offset for bsw is calculated as there are 16 EUs, so need
bigger scrach bo size.

Signed-off-by: Pan Xiuli <xiuli....@intel.com>
---
 src/intel/intel_gpgpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c
index db967e8..bf52f96 100644
--- a/src/intel/intel_gpgpu.c
+++ b/src/intel/intel_gpgpu.c
@@ -1538,7 +1538,7 @@ intel_gpgpu_set_scratch(intel_gpgpu_t * gpgpu, uint32_t 
per_thread_size)
   drm_intel_bo* old = gpgpu->scratch_b.bo;
   uint32_t total = per_thread_size * gpgpu->max_threads;
   /* Per Bspec, scratch should 2X the desired size, otherwise luxmark may hang 
*/
-  if (IS_HASWELL(gpgpu->drv->device_id))
+  if (IS_HASWELL(gpgpu->drv->device_id) || 
IS_CHERRYVIEW(gpgpu->drv->device_id))
       total *= 2;
 
   gpgpu->per_thread_scratch = per_thread_size;
-- 
2.7.4

_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to