This patch itself LGTM. But I will move it after other patches. Thus once this patch get applied, it can accept Gen8 device and work as expected.
Thanks. On Mon, Sep 29, 2014 at 01:37:44PM +0800, Yang Rong wrote: > From: Junyan He <[email protected]> > > Signed-off-by: Junyan He <[email protected]> > --- > src/cl_command_queue.c | 2 +- > src/intel/intel_driver.c | 4 +++- > 2 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/src/cl_command_queue.c b/src/cl_command_queue.c > index 4cbb4eb..48deba0 100644 > --- a/src/cl_command_queue.c > +++ b/src/cl_command_queue.c > @@ -410,7 +410,7 @@ cl_command_queue_ND_range(cl_command_queue queue, > } > #endif /* USE_FULSIM */ > > - if (ver == 7 || ver == 75) > + if (ver == 7 || ver == 75 || ver == 8) > TRY (cl_command_queue_ND_range_gen7, queue, k, work_dim, global_wk_off, > global_wk_sz, local_wk_sz); > else > FATAL ("Unknown Gen Device"); > diff --git a/src/intel/intel_driver.c b/src/intel/intel_driver.c > index 66f2bcf..2c2ed5f 100644 > --- a/src/intel/intel_driver.c > +++ b/src/intel/intel_driver.c > @@ -183,7 +183,9 @@ intel_driver_init(intel_driver_t *driver, int dev_fd) > else > FATAL ("Unsupported Gen for emulation"); > #else > - if (IS_GEN75(driver->device_id)) > + if (IS_GEN8(driver->device_id)) > + driver->gen_ver = 8; > + else if (IS_GEN75(driver->device_id)) > driver->gen_ver = 75; > else if (IS_GEN7(driver->device_id)) > driver->gen_ver = 7; > -- > 1.8.3.2 > > _______________________________________________ > Beignet mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/beignet _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
