Pushed.
> -----Original Message----- > From: Beignet [mailto:[email protected]] On Behalf Of > Xiuli Pan > Sent: Friday, July 29, 2016 17:53 > To: [email protected] > Cc: Pan, Xiuli <[email protected]> > Subject: [Beignet] [PATCH] Runtime: Fix hang for bsw device with 12 EU > > From: Pan Xiuli <[email protected]> > > The scrach offset for bsw is calculated as there are 16 EUs, so need bigger > scrach bo size. > > Signed-off-by: Pan Xiuli <[email protected]> > --- > 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 > [email protected] > https://lists.freedesktop.org/mailman/listinfo/beignet _______________________________________________ Beignet mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/beignet
