From 93a31636f335850d838c361b40f0795eaa7c3cf0 Mon Sep 17 00:00:00 2001 From: Brice Videau Date: Mon, 9 Feb 2026 16:10:21 -0600 Subject: [PATCH] Generated headers for cl_khr_icd instance platform support. --- CL/cl_ext.h | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/CL/cl_ext.h b/CL/cl_ext.h index 2775f60a..83826953 100644 --- a/CL/cl_ext.h +++ b/CL/cl_ext.h @@ -883,11 +883,16 @@ clLogMessagesToStderrAPPLE( "cl_khr_icd" -#define CL_KHR_ICD_EXTENSION_VERSION CL_MAKE_VERSION(2, 0, 1) +#define CL_KHR_ICD_EXTENSION_VERSION CL_MAKE_VERSION(2, 0, 2) + +typedef cl_properties cl_instance_platform_properties_khr; /* cl_platform_info */ #define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920 +/* cl_instance_platform_properties_khr */ +#define CL_INSTANCE_PLATFORM_PROPERTIES_LIST_END_KHR 0 + /* Error codes */ #define CL_PLATFORM_NOT_FOUND_KHR -1001 @@ -924,6 +929,22 @@ clIcdSetPlatformDispatchDataKHR_t( typedef clIcdSetPlatformDispatchDataKHR_t * clIcdSetPlatformDispatchDataKHR_fn ; +typedef cl_platform_id CL_API_CALL +clIcdCreateInstancePlatformKHR_t( + cl_platform_id platform, + const cl_instance_platform_properties_khr* properties, + cl_int* errcode_ret); + +typedef clIcdCreateInstancePlatformKHR_t * +clIcdCreateInstancePlatformKHR_fn ; + +typedef cl_int CL_API_CALL +clIcdDestroyInstancePlatformKHR_t( + cl_platform_id platform); + +typedef clIcdDestroyInstancePlatformKHR_t * +clIcdDestroyInstancePlatformKHR_fn ; + #if !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) extern CL_API_ENTRY cl_int CL_API_CALL @@ -942,6 +963,16 @@ clIcdSetPlatformDispatchDataKHR( cl_platform_id platform, void* dispatch_data) ; +extern CL_API_ENTRY cl_platform_id CL_API_CALL +clIcdCreateInstancePlatformKHR( + cl_platform_id platform, + const cl_instance_platform_properties_khr* properties, + cl_int* errcode_ret) ; + +extern CL_API_ENTRY cl_int CL_API_CALL +clIcdDestroyInstancePlatformKHR( + cl_platform_id platform) ; + #endif /* !defined(CL_NO_NON_ICD_DISPATCH_EXTENSION_PROTOTYPES) */ /***************************************************************