[Beignet] [PATCH] enlarge scratch size for bxt 0x5a85
Yang, Rong R
rong.r.yang at intel.com
Wed Sep 28 08:23:21 UTC 2016
LGTM, pushed, thanks.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Guo Yejun
> Sent: Wednesday, September 21, 2016 13:48
> To: beignet at lists.freedesktop.org
> Cc: Guo, Yejun <yejun.guo at intel.com>
> Subject: [Beignet] [PATCH] enlarge scratch size for bxt 0x5a85
>
> Signed-off-by: Guo Yejun <yejun.guo at intel.com>
> ---
> src/intel/intel_gpgpu.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c index
> 3314ab4..f8eac56 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;
> --
> 2.7.4
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list