Skip to content

Commit 2392e09

Browse files
committed
Merge branch 'main' into cl_khr_unified_svm
2 parents 41c863f + 6eabe90 commit 2392e09

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

CL/cl_ext.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4129,6 +4129,21 @@ typedef cl_bitfield cl_device_kernel_clock_capabilities_khr;
41294129

41304130
#define CL_KHR_SPIRV_NO_INTEGER_WRAP_DECORATION_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
41314131

4132+
/***************************************************************
4133+
* cl_khr_spirv_queries
4134+
***************************************************************/
4135+
#define cl_khr_spirv_queries 1
4136+
#define CL_KHR_SPIRV_QUERIES_EXTENSION_NAME \
4137+
"cl_khr_spirv_queries"
4138+
4139+
4140+
#define CL_KHR_SPIRV_QUERIES_EXTENSION_VERSION CL_MAKE_VERSION(1, 0, 0)
4141+
4142+
/* cl_device_info */
4143+
#define CL_DEVICE_SPIRV_EXTENDED_INSTRUCTION_SETS_KHR 0x12B9
4144+
#define CL_DEVICE_SPIRV_EXTENSIONS_KHR 0x12BA
4145+
#define CL_DEVICE_SPIRV_CAPABILITIES_KHR 0x12BB
4146+
41324147
/***************************************************************
41334148
* cl_khr_srgb_image_writes
41344149
***************************************************************/

scripts/cl_ext.h.mako

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,8 @@ extern "C" {
315315
version_minor = version[1]
316316
version_patch = version[2]
317317
318-
is_beta = extension.get('provisional') == 'true'
318+
# Note: when "provisional" is phased out of the XML file, it can be removed here, too
319+
is_beta = extension.get('experimental') == 'true' or extension.get('provisional') == 'true'
319320
beta_label = ' (beta)' if is_beta else ''
320321
%>/***************************************************************
321322
* ${name}${beta_label}

0 commit comments

Comments
 (0)