[Beignet] [PATCH 1/6] BDW: Add gen8 into intel_driver_init

Yang Rong rong.r.yang at intel.com
Sun Sep 28 22:37:44 PDT 2014


From: Junyan He <junyan.he at linux.intel.com>

Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
 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



More information about the Beignet mailing list