|
|
@@ -1,5 +1,5 @@
|
|
|
/*******************************************************************************
|
|
|
- * Copyright (c) 2011 The Khronos Group Inc.
|
|
|
+ * Copyright (c) 2008 - 2012 The Khronos Group Inc.
|
|
|
*
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
* copy of this software and/or associated documentation files (the
|
|
|
@@ -278,6 +278,8 @@ typedef struct _cl_buffer_region {
|
|
|
#define CL_DEVICE_REFERENCE_COUNT 0x1047
|
|
|
#define CL_DEVICE_PREFERRED_INTEROP_USER_SYNC 0x1048
|
|
|
#define CL_DEVICE_PRINTF_BUFFER_SIZE 0x1049
|
|
|
+#define CL_DEVICE_IMAGE_PITCH_ALIGNMENT 0x104A
|
|
|
+#define CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT 0x104B
|
|
|
|
|
|
/* cl_device_fp_config - bitfield */
|
|
|
#define CL_FP_DENORM (1 << 0)
|
|
|
@@ -366,6 +368,8 @@ typedef struct _cl_buffer_region {
|
|
|
#define CL_Rx 0x10BA
|
|
|
#define CL_RGx 0x10BB
|
|
|
#define CL_RGBx 0x10BC
|
|
|
+#define CL_DEPTH 0x10BD
|
|
|
+#define CL_DEPTH_STENCIL 0x10BE
|
|
|
|
|
|
/* cl_channel_type */
|
|
|
#define CL_SNORM_INT8 0x10D0
|
|
|
@@ -383,6 +387,7 @@ typedef struct _cl_buffer_region {
|
|
|
#define CL_UNSIGNED_INT32 0x10DC
|
|
|
#define CL_HALF_FLOAT 0x10DD
|
|
|
#define CL_FLOAT 0x10DE
|
|
|
+#define CL_UNORM_INT24 0x10DF
|
|
|
|
|
|
/* cl_mem_object_type */
|
|
|
#define CL_MEM_OBJECT_BUFFER 0x10F0
|
|
|
@@ -1147,15 +1152,6 @@ clEnqueueBarrierWithWaitList(cl_command_queue /* command_queue */,
|
|
|
const cl_event * /* event_wait_list */,
|
|
|
cl_event * /* event */) CL_API_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
-extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
-clSetPrintfCallback(cl_context /* context */,
|
|
|
- void (CL_CALLBACK * /* pfn_notify */)(cl_context /* program */,
|
|
|
- cl_uint /*printf_data_len */,
|
|
|
- char * /* printf_data_ptr */,
|
|
|
- void * /* user_data */),
|
|
|
- void * /* user_data */) CL_API_SUFFIX__VERSION_1_2;
|
|
|
-
|
|
|
-
|
|
|
|
|
|
/* Extension function access
|
|
|
*
|
|
|
@@ -1168,68 +1164,47 @@ extern CL_API_ENTRY void * CL_API_CALL
|
|
|
clGetExtensionFunctionAddressForPlatform(cl_platform_id /* platform */,
|
|
|
const char * /* func_name */) CL_API_SUFFIX__VERSION_1_2;
|
|
|
|
|
|
+
|
|
|
+// Deprecated OpenCL 1.1 APIs
|
|
|
+extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
|
|
|
+clCreateImage2D(cl_context /* context */,
|
|
|
+ cl_mem_flags /* flags */,
|
|
|
+ const cl_image_format * /* image_format */,
|
|
|
+ size_t /* image_width */,
|
|
|
+ size_t /* image_height */,
|
|
|
+ size_t /* image_row_pitch */,
|
|
|
+ void * /* host_ptr */,
|
|
|
+ cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
|
|
|
-#ifdef CL_USE_DEPRECATED_OPENCL_1_0_APIS
|
|
|
-#warning CL_USE_DEPRECATED_OPENCL_1_0_APIS is defined. These APIs are unsupported and untested in OpenCL 1.1!
|
|
|
- /*
|
|
|
- * WARNING:
|
|
|
- * This API introduces mutable state into the OpenCL implementation. It has been REMOVED
|
|
|
- * to better facilitate thread safety. The 1.0 API is not thread safe. It is not tested by the
|
|
|
- * OpenCL 1.1 conformance test, and consequently may not work or may not work dependably.
|
|
|
- * It is likely to be non-performant. Use of this API is not advised. Use at your own risk.
|
|
|
- *
|
|
|
- * Software developers previously relying on this API are instructed to set the command queue
|
|
|
- * properties when creating the queue, instead.
|
|
|
- */
|
|
|
- extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
- clSetCommandQueueProperty(cl_command_queue /* command_queue */,
|
|
|
- cl_command_queue_properties /* properties */,
|
|
|
- cl_bool /* enable */,
|
|
|
- cl_command_queue_properties * /* old_properties */) CL_EXT_SUFFIX__VERSION_1_0_DEPRECATED;
|
|
|
-#endif /* CL_USE_DEPRECATED_OPENCL_1_0_APIS */
|
|
|
-
|
|
|
-
|
|
|
-#ifdef CL_USE_DEPRECATED_OPENCL_1_1_APIS
|
|
|
- extern CL_API_ENTRY cl_mem CL_API_CALL
|
|
|
- clCreateImage2D(cl_context /* context */,
|
|
|
- cl_mem_flags /* flags */,
|
|
|
- const cl_image_format * /* image_format */,
|
|
|
- size_t /* image_width */,
|
|
|
- size_t /* image_height */,
|
|
|
- size_t /* image_row_pitch */,
|
|
|
- void * /* host_ptr */,
|
|
|
- cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
-
|
|
|
- extern CL_API_ENTRY cl_mem CL_API_CALL
|
|
|
- clCreateImage3D(cl_context /* context */,
|
|
|
- cl_mem_flags /* flags */,
|
|
|
- const cl_image_format * /* image_format */,
|
|
|
- size_t /* image_width */,
|
|
|
- size_t /* image_height */,
|
|
|
- size_t /* image_depth */,
|
|
|
- size_t /* image_row_pitch */,
|
|
|
- size_t /* image_slice_pitch */,
|
|
|
- void * /* host_ptr */,
|
|
|
- cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
+extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_mem CL_API_CALL
|
|
|
+clCreateImage3D(cl_context /* context */,
|
|
|
+ cl_mem_flags /* flags */,
|
|
|
+ const cl_image_format * /* image_format */,
|
|
|
+ size_t /* image_width */,
|
|
|
+ size_t /* image_height */,
|
|
|
+ size_t /* image_depth */,
|
|
|
+ size_t /* image_row_pitch */,
|
|
|
+ size_t /* image_slice_pitch */,
|
|
|
+ void * /* host_ptr */,
|
|
|
+ cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
|
|
|
- extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
- clEnqueueMarker(cl_command_queue /* command_queue */,
|
|
|
- cl_event * /* event */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
+extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL
|
|
|
+clEnqueueMarker(cl_command_queue /* command_queue */,
|
|
|
+ cl_event * /* event */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
|
|
|
- extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
- clEnqueueWaitForEvents(cl_command_queue /* command_queue */,
|
|
|
- cl_uint /* num_events */,
|
|
|
- const cl_event * /* event_list */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
+extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL
|
|
|
+clEnqueueWaitForEvents(cl_command_queue /* command_queue */,
|
|
|
+ cl_uint /* num_events */,
|
|
|
+ const cl_event * /* event_list */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
|
|
|
- extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
- clEnqueueBarrier(cl_command_queue /* command_queue */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
+extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL
|
|
|
+clEnqueueBarrier(cl_command_queue /* command_queue */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
|
|
|
- extern CL_API_ENTRY cl_int CL_API_CALL
|
|
|
- clUnloadCompiler(void) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
+extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL
|
|
|
+clUnloadCompiler(void) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
|
|
|
- extern CL_API_ENTRY void * CL_API_CALL
|
|
|
- clGetExtensionFunctionAddress(const char * /* func_name */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
-#endif /* CL_USE_DEPRECATED_OPENCL_1_2_APIS */
|
|
|
+extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_1_DEPRECATED void * CL_API_CALL
|
|
|
+clGetExtensionFunctionAddress(const char * /* func_name */) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
}
|