[Beignet] [PATCH] Runtime: Fix hang for bsw device with 12 EU
Xiuli Pan
xiuli.pan at intel.com
Fri Jul 29 09:53:12 UTC 2016
From: Pan Xiuli <xiuli.pan at 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.pan at 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
More information about the Beignet
mailing list