diff options
author | Guo Yejun <yejun.guo@intel.com> | 2016-09-21 13:48:22 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-09-23 12:52:19 +0800 |
commit | 9caf7574db17c6e60b4fddb5e2e7ced34a943bed (patch) | |
tree | 767424f5114e1de21802e6065f0a04cee4ab1909 /src/intel | |
parent | 2c1f2468b82d855bc0b2ec08ddb7280790067e48 (diff) |
enlarge scratch size for bxt 0x5a85
Signed-off-by: Guo Yejun <yejun.guo@intel.com>
Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/intel_gpgpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c index 3314ab4b..f8eac569 100644 --- a/src/intel/intel_gpgpu.c +++ b/src/intel/intel_gpgpu.c @@ -1537,8 +1537,8 @@ intel_gpgpu_set_scratch(intel_gpgpu_t * gpgpu, uint32_t per_thread_size) drm_intel_bufmgr *bufmgr = gpgpu->drv->bufmgr; 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) || IS_CHERRYVIEW(gpgpu->drv->device_id)) + /* Per Bspec, scratch should 2X the desired size when EU index is not continuous */ + if (IS_HASWELL(gpgpu->drv->device_id) || IS_CHERRYVIEW(gpgpu->drv->device_id) || PCI_CHIP_BROXTON_1 == gpgpu->drv->device_id) total *= 2; gpgpu->per_thread_scratch = per_thread_size; |