[01/14] Libocl: Add intel_subgroups_short extension

Submitted by Pan Xiuli on Oct. 12, 2016, 8:56 a.m.

Details

Message ID 1476262604-27504-1-git-send-email-xiuli.pan@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 1 ) in Beignet

Browsing this patch as part of:
"Series without cover letter" rev 1 in Beignet
<< prev patch [1/14] next patch >>

Commit Message

Pan Xiuli Oct. 12, 2016, 8:56 a.m.
From: Pan Xiuli <xiuli.pan@intel.com>

We support intel_subgroups_short extension.

Signed-off-by: Pan Xiuli <xiuli.pan@intel.com>
---
 backend/src/libocl/include/ocl.h | 1 +
 src/cl_extensions.h              | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/backend/src/libocl/include/ocl.h b/backend/src/libocl/include/ocl.h
index 5e3a788..6230b93 100644
--- a/backend/src/libocl/include/ocl.h
+++ b/backend/src/libocl/include/ocl.h
@@ -114,6 +114,7 @@ 
 #define cl_khr_fp16
 #define cl_khr_3d_image_writes
 #define cl_intel_subgroups
+#define cl_intel_subgroups_short
 
 #pragma OPENCL EXTENSION cl_khr_fp64 : disable
 #pragma OPENCL EXTENSION cl_khr_fp16 : disable
diff --git a/src/cl_extensions.h b/src/cl_extensions.h
index 1139775..c32e085 100644
--- a/src/cl_extensions.h
+++ b/src/cl_extensions.h
@@ -28,7 +28,8 @@ 
 #define DECL_INTEL_EXTENSIONS \
   DECL_EXT(intel_accelerator) \
   DECL_EXT(intel_motion_estimation) \
-  DECL_EXT(intel_subgroups)
+  DECL_EXT(intel_subgroups) \
+  DECL_EXT(intel_subgroups_short)
 
 #define DECL_GL_EXTENSIONS \
   DECL_EXT(khr_gl_sharing)\
@@ -63,7 +64,7 @@  cl_khr_extension_id_max
 #define OPT1_EXT_START_ID EXT_ID(khr_int64_base_atomics)
 #define OPT1_EXT_END_ID EXT_ID(khr_icd)
 #define INTEL_EXT_START_ID EXT_ID(intel_accelerator)
-#define INTEL_EXT_END_ID EXT_ID(intel_subgroups)
+#define INTEL_EXT_END_ID EXT_ID(intel_subgroups_short)
 #define GL_EXT_START_ID EXT_ID(khr_gl_sharing)
 #define GL_EXT_END_ID EXT_ID(khr_gl_msaa_sharing)