180d59932Sopenharmony_ci/******************************************************************************* 280d59932Sopenharmony_ci * Copyright (c) 2008-2020 The Khronos Group Inc. 380d59932Sopenharmony_ci * 480d59932Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 580d59932Sopenharmony_ci * you may not use this file except in compliance with the License. 680d59932Sopenharmony_ci * You may obtain a copy of the License at 780d59932Sopenharmony_ci * 880d59932Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 980d59932Sopenharmony_ci * 1080d59932Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1180d59932Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1280d59932Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1380d59932Sopenharmony_ci * See the License for the specific language governing permissions and 1480d59932Sopenharmony_ci * limitations under the License. 1580d59932Sopenharmony_ci ******************************************************************************/ 1680d59932Sopenharmony_ci 1780d59932Sopenharmony_ci/* cl_ext.h contains OpenCL extensions which don't have external */ 1880d59932Sopenharmony_ci/* (OpenGL, D3D) dependencies. */ 1980d59932Sopenharmony_ci 2080d59932Sopenharmony_ci#ifndef __CL_EXT_H 2180d59932Sopenharmony_ci#define __CL_EXT_H 2280d59932Sopenharmony_ci 2380d59932Sopenharmony_ci#ifdef __cplusplus 2480d59932Sopenharmony_ciextern "C" { 2580d59932Sopenharmony_ci#endif 2680d59932Sopenharmony_ci 2780d59932Sopenharmony_ci#include <CL/cl.h> 2880d59932Sopenharmony_ci 2980d59932Sopenharmony_ci/*************************************************************** 3080d59932Sopenharmony_ci* cl_khr_command_buffer 3180d59932Sopenharmony_ci***************************************************************/ 3280d59932Sopenharmony_ci#define cl_khr_command_buffer 1 3380d59932Sopenharmony_ci#define CL_KHR_COMMAND_BUFFER_EXTENSION_NAME \ 3480d59932Sopenharmony_ci "cl_khr_command_buffer" 3580d59932Sopenharmony_ci 3680d59932Sopenharmony_citypedef cl_bitfield cl_device_command_buffer_capabilities_khr; 3780d59932Sopenharmony_citypedef struct _cl_command_buffer_khr* cl_command_buffer_khr; 3880d59932Sopenharmony_citypedef cl_uint cl_sync_point_khr; 3980d59932Sopenharmony_citypedef cl_uint cl_command_buffer_info_khr; 4080d59932Sopenharmony_citypedef cl_uint cl_command_buffer_state_khr; 4180d59932Sopenharmony_citypedef cl_properties cl_command_buffer_properties_khr; 4280d59932Sopenharmony_citypedef cl_bitfield cl_command_buffer_flags_khr; 4380d59932Sopenharmony_citypedef cl_properties cl_ndrange_kernel_command_properties_khr; 4480d59932Sopenharmony_citypedef struct _cl_mutable_command_khr* cl_mutable_command_khr; 4580d59932Sopenharmony_ci 4680d59932Sopenharmony_ci/* cl_device_info */ 4780d59932Sopenharmony_ci#define CL_DEVICE_COMMAND_BUFFER_CAPABILITIES_KHR 0x12A9 4880d59932Sopenharmony_ci#define CL_DEVICE_COMMAND_BUFFER_REQUIRED_QUEUE_PROPERTIES_KHR 0x12AA 4980d59932Sopenharmony_ci 5080d59932Sopenharmony_ci/* cl_device_command_buffer_capabilities_khr - bitfield */ 5180d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_CAPABILITY_KERNEL_PRINTF_KHR (1 << 0) 5280d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_CAPABILITY_DEVICE_SIDE_ENQUEUE_KHR (1 << 1) 5380d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_CAPABILITY_SIMULTANEOUS_USE_KHR (1 << 2) 5480d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_CAPABILITY_OUT_OF_ORDER_KHR (1 << 3) 5580d59932Sopenharmony_ci 5680d59932Sopenharmony_ci/* cl_command_buffer_properties_khr */ 5780d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_FLAGS_KHR 0x1293 5880d59932Sopenharmony_ci 5980d59932Sopenharmony_ci/* cl_command_buffer_flags_khr */ 6080d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_SIMULTANEOUS_USE_KHR (1 << 0) 6180d59932Sopenharmony_ci 6280d59932Sopenharmony_ci/* Error codes */ 6380d59932Sopenharmony_ci#define CL_INVALID_COMMAND_BUFFER_KHR -1138 6480d59932Sopenharmony_ci#define CL_INVALID_SYNC_POINT_WAIT_LIST_KHR -1139 6580d59932Sopenharmony_ci#define CL_INCOMPATIBLE_COMMAND_QUEUE_KHR -1140 6680d59932Sopenharmony_ci 6780d59932Sopenharmony_ci/* cl_command_buffer_info_khr */ 6880d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_QUEUES_KHR 0x1294 6980d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_NUM_QUEUES_KHR 0x1295 7080d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_REFERENCE_COUNT_KHR 0x1296 7180d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_STATE_KHR 0x1297 7280d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_PROPERTIES_ARRAY_KHR 0x1298 7380d59932Sopenharmony_ci 7480d59932Sopenharmony_ci/* cl_command_buffer_state_khr */ 7580d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_STATE_RECORDING_KHR 0 7680d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_STATE_EXECUTABLE_KHR 1 7780d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_STATE_PENDING_KHR 2 7880d59932Sopenharmony_ci#define CL_COMMAND_BUFFER_STATE_INVALID_KHR 3 7980d59932Sopenharmony_ci 8080d59932Sopenharmony_ci/* cl_command_type */ 8180d59932Sopenharmony_ci#define CL_COMMAND_COMMAND_BUFFER_KHR 0x12A8 8280d59932Sopenharmony_ci 8380d59932Sopenharmony_ci 8480d59932Sopenharmony_citypedef cl_command_buffer_khr (CL_API_CALL * 8580d59932Sopenharmony_ciclCreateCommandBufferKHR_fn)( 8680d59932Sopenharmony_ci cl_uint num_queues, 8780d59932Sopenharmony_ci const cl_command_queue* queues, 8880d59932Sopenharmony_ci const cl_command_buffer_properties_khr* properties, 8980d59932Sopenharmony_ci cl_int* errcode_ret) ; 9080d59932Sopenharmony_ci 9180d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 9280d59932Sopenharmony_ciclFinalizeCommandBufferKHR_fn)( 9380d59932Sopenharmony_ci cl_command_buffer_khr command_buffer) ; 9480d59932Sopenharmony_ci 9580d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 9680d59932Sopenharmony_ciclRetainCommandBufferKHR_fn)( 9780d59932Sopenharmony_ci cl_command_buffer_khr command_buffer) ; 9880d59932Sopenharmony_ci 9980d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 10080d59932Sopenharmony_ciclReleaseCommandBufferKHR_fn)( 10180d59932Sopenharmony_ci cl_command_buffer_khr command_buffer) ; 10280d59932Sopenharmony_ci 10380d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 10480d59932Sopenharmony_ciclEnqueueCommandBufferKHR_fn)( 10580d59932Sopenharmony_ci cl_uint num_queues, 10680d59932Sopenharmony_ci cl_command_queue* queues, 10780d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 10880d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 10980d59932Sopenharmony_ci const cl_event* event_wait_list, 11080d59932Sopenharmony_ci cl_event* event) ; 11180d59932Sopenharmony_ci 11280d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 11380d59932Sopenharmony_ciclCommandBarrierWithWaitListKHR_fn)( 11480d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 11580d59932Sopenharmony_ci cl_command_queue command_queue, 11680d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 11780d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 11880d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 11980d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 12080d59932Sopenharmony_ci 12180d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 12280d59932Sopenharmony_ciclCommandCopyBufferKHR_fn)( 12380d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 12480d59932Sopenharmony_ci cl_command_queue command_queue, 12580d59932Sopenharmony_ci cl_mem src_buffer, 12680d59932Sopenharmony_ci cl_mem dst_buffer, 12780d59932Sopenharmony_ci size_t src_offset, 12880d59932Sopenharmony_ci size_t dst_offset, 12980d59932Sopenharmony_ci size_t size, 13080d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 13180d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 13280d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 13380d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 13480d59932Sopenharmony_ci 13580d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 13680d59932Sopenharmony_ciclCommandCopyBufferRectKHR_fn)( 13780d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 13880d59932Sopenharmony_ci cl_command_queue command_queue, 13980d59932Sopenharmony_ci cl_mem src_buffer, 14080d59932Sopenharmony_ci cl_mem dst_buffer, 14180d59932Sopenharmony_ci const size_t* src_origin, 14280d59932Sopenharmony_ci const size_t* dst_origin, 14380d59932Sopenharmony_ci const size_t* region, 14480d59932Sopenharmony_ci size_t src_row_pitch, 14580d59932Sopenharmony_ci size_t src_slice_pitch, 14680d59932Sopenharmony_ci size_t dst_row_pitch, 14780d59932Sopenharmony_ci size_t dst_slice_pitch, 14880d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 14980d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 15080d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 15180d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 15280d59932Sopenharmony_ci 15380d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 15480d59932Sopenharmony_ciclCommandCopyBufferToImageKHR_fn)( 15580d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 15680d59932Sopenharmony_ci cl_command_queue command_queue, 15780d59932Sopenharmony_ci cl_mem src_buffer, 15880d59932Sopenharmony_ci cl_mem dst_image, 15980d59932Sopenharmony_ci size_t src_offset, 16080d59932Sopenharmony_ci const size_t* dst_origin, 16180d59932Sopenharmony_ci const size_t* region, 16280d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 16380d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 16480d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 16580d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 16680d59932Sopenharmony_ci 16780d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 16880d59932Sopenharmony_ciclCommandCopyImageKHR_fn)( 16980d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 17080d59932Sopenharmony_ci cl_command_queue command_queue, 17180d59932Sopenharmony_ci cl_mem src_image, 17280d59932Sopenharmony_ci cl_mem dst_image, 17380d59932Sopenharmony_ci const size_t* src_origin, 17480d59932Sopenharmony_ci const size_t* dst_origin, 17580d59932Sopenharmony_ci const size_t* region, 17680d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 17780d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 17880d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 17980d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 18080d59932Sopenharmony_ci 18180d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 18280d59932Sopenharmony_ciclCommandCopyImageToBufferKHR_fn)( 18380d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 18480d59932Sopenharmony_ci cl_command_queue command_queue, 18580d59932Sopenharmony_ci cl_mem src_image, 18680d59932Sopenharmony_ci cl_mem dst_buffer, 18780d59932Sopenharmony_ci const size_t* src_origin, 18880d59932Sopenharmony_ci const size_t* region, 18980d59932Sopenharmony_ci size_t dst_offset, 19080d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 19180d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 19280d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 19380d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 19480d59932Sopenharmony_ci 19580d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 19680d59932Sopenharmony_ciclCommandFillBufferKHR_fn)( 19780d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 19880d59932Sopenharmony_ci cl_command_queue command_queue, 19980d59932Sopenharmony_ci cl_mem buffer, 20080d59932Sopenharmony_ci const void* pattern, 20180d59932Sopenharmony_ci size_t pattern_size, 20280d59932Sopenharmony_ci size_t offset, 20380d59932Sopenharmony_ci size_t size, 20480d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 20580d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 20680d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 20780d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 20880d59932Sopenharmony_ci 20980d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 21080d59932Sopenharmony_ciclCommandFillImageKHR_fn)( 21180d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 21280d59932Sopenharmony_ci cl_command_queue command_queue, 21380d59932Sopenharmony_ci cl_mem image, 21480d59932Sopenharmony_ci const void* fill_color, 21580d59932Sopenharmony_ci const size_t* origin, 21680d59932Sopenharmony_ci const size_t* region, 21780d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 21880d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 21980d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 22080d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 22180d59932Sopenharmony_ci 22280d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 22380d59932Sopenharmony_ciclCommandNDRangeKernelKHR_fn)( 22480d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 22580d59932Sopenharmony_ci cl_command_queue command_queue, 22680d59932Sopenharmony_ci const cl_ndrange_kernel_command_properties_khr* properties, 22780d59932Sopenharmony_ci cl_kernel kernel, 22880d59932Sopenharmony_ci cl_uint work_dim, 22980d59932Sopenharmony_ci const size_t* global_work_offset, 23080d59932Sopenharmony_ci const size_t* global_work_size, 23180d59932Sopenharmony_ci const size_t* local_work_size, 23280d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 23380d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 23480d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 23580d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 23680d59932Sopenharmony_ci 23780d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 23880d59932Sopenharmony_ciclGetCommandBufferInfoKHR_fn)( 23980d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 24080d59932Sopenharmony_ci cl_command_buffer_info_khr param_name, 24180d59932Sopenharmony_ci size_t param_value_size, 24280d59932Sopenharmony_ci void* param_value, 24380d59932Sopenharmony_ci size_t* param_value_size_ret) ; 24480d59932Sopenharmony_ci 24580d59932Sopenharmony_ci#ifndef CL_NO_PROTOTYPES 24680d59932Sopenharmony_ci 24780d59932Sopenharmony_ciextern CL_API_ENTRY cl_command_buffer_khr CL_API_CALL 24880d59932Sopenharmony_ciclCreateCommandBufferKHR( 24980d59932Sopenharmony_ci cl_uint num_queues, 25080d59932Sopenharmony_ci const cl_command_queue* queues, 25180d59932Sopenharmony_ci const cl_command_buffer_properties_khr* properties, 25280d59932Sopenharmony_ci cl_int* errcode_ret) ; 25380d59932Sopenharmony_ci 25480d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 25580d59932Sopenharmony_ciclFinalizeCommandBufferKHR( 25680d59932Sopenharmony_ci cl_command_buffer_khr command_buffer) ; 25780d59932Sopenharmony_ci 25880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 25980d59932Sopenharmony_ciclRetainCommandBufferKHR( 26080d59932Sopenharmony_ci cl_command_buffer_khr command_buffer) ; 26180d59932Sopenharmony_ci 26280d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 26380d59932Sopenharmony_ciclReleaseCommandBufferKHR( 26480d59932Sopenharmony_ci cl_command_buffer_khr command_buffer) ; 26580d59932Sopenharmony_ci 26680d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 26780d59932Sopenharmony_ciclEnqueueCommandBufferKHR( 26880d59932Sopenharmony_ci cl_uint num_queues, 26980d59932Sopenharmony_ci cl_command_queue* queues, 27080d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 27180d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 27280d59932Sopenharmony_ci const cl_event* event_wait_list, 27380d59932Sopenharmony_ci cl_event* event) ; 27480d59932Sopenharmony_ci 27580d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 27680d59932Sopenharmony_ciclCommandBarrierWithWaitListKHR( 27780d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 27880d59932Sopenharmony_ci cl_command_queue command_queue, 27980d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 28080d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 28180d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 28280d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 28380d59932Sopenharmony_ci 28480d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 28580d59932Sopenharmony_ciclCommandCopyBufferKHR( 28680d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 28780d59932Sopenharmony_ci cl_command_queue command_queue, 28880d59932Sopenharmony_ci cl_mem src_buffer, 28980d59932Sopenharmony_ci cl_mem dst_buffer, 29080d59932Sopenharmony_ci size_t src_offset, 29180d59932Sopenharmony_ci size_t dst_offset, 29280d59932Sopenharmony_ci size_t size, 29380d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 29480d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 29580d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 29680d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 29780d59932Sopenharmony_ci 29880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 29980d59932Sopenharmony_ciclCommandCopyBufferRectKHR( 30080d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 30180d59932Sopenharmony_ci cl_command_queue command_queue, 30280d59932Sopenharmony_ci cl_mem src_buffer, 30380d59932Sopenharmony_ci cl_mem dst_buffer, 30480d59932Sopenharmony_ci const size_t* src_origin, 30580d59932Sopenharmony_ci const size_t* dst_origin, 30680d59932Sopenharmony_ci const size_t* region, 30780d59932Sopenharmony_ci size_t src_row_pitch, 30880d59932Sopenharmony_ci size_t src_slice_pitch, 30980d59932Sopenharmony_ci size_t dst_row_pitch, 31080d59932Sopenharmony_ci size_t dst_slice_pitch, 31180d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 31280d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 31380d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 31480d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 31580d59932Sopenharmony_ci 31680d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 31780d59932Sopenharmony_ciclCommandCopyBufferToImageKHR( 31880d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 31980d59932Sopenharmony_ci cl_command_queue command_queue, 32080d59932Sopenharmony_ci cl_mem src_buffer, 32180d59932Sopenharmony_ci cl_mem dst_image, 32280d59932Sopenharmony_ci size_t src_offset, 32380d59932Sopenharmony_ci const size_t* dst_origin, 32480d59932Sopenharmony_ci const size_t* region, 32580d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 32680d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 32780d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 32880d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 32980d59932Sopenharmony_ci 33080d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 33180d59932Sopenharmony_ciclCommandCopyImageKHR( 33280d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 33380d59932Sopenharmony_ci cl_command_queue command_queue, 33480d59932Sopenharmony_ci cl_mem src_image, 33580d59932Sopenharmony_ci cl_mem dst_image, 33680d59932Sopenharmony_ci const size_t* src_origin, 33780d59932Sopenharmony_ci const size_t* dst_origin, 33880d59932Sopenharmony_ci const size_t* region, 33980d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 34080d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 34180d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 34280d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 34380d59932Sopenharmony_ci 34480d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 34580d59932Sopenharmony_ciclCommandCopyImageToBufferKHR( 34680d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 34780d59932Sopenharmony_ci cl_command_queue command_queue, 34880d59932Sopenharmony_ci cl_mem src_image, 34980d59932Sopenharmony_ci cl_mem dst_buffer, 35080d59932Sopenharmony_ci const size_t* src_origin, 35180d59932Sopenharmony_ci const size_t* region, 35280d59932Sopenharmony_ci size_t dst_offset, 35380d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 35480d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 35580d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 35680d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 35780d59932Sopenharmony_ci 35880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 35980d59932Sopenharmony_ciclCommandFillBufferKHR( 36080d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 36180d59932Sopenharmony_ci cl_command_queue command_queue, 36280d59932Sopenharmony_ci cl_mem buffer, 36380d59932Sopenharmony_ci const void* pattern, 36480d59932Sopenharmony_ci size_t pattern_size, 36580d59932Sopenharmony_ci size_t offset, 36680d59932Sopenharmony_ci size_t size, 36780d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 36880d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 36980d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 37080d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 37180d59932Sopenharmony_ci 37280d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 37380d59932Sopenharmony_ciclCommandFillImageKHR( 37480d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 37580d59932Sopenharmony_ci cl_command_queue command_queue, 37680d59932Sopenharmony_ci cl_mem image, 37780d59932Sopenharmony_ci const void* fill_color, 37880d59932Sopenharmony_ci const size_t* origin, 37980d59932Sopenharmony_ci const size_t* region, 38080d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 38180d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 38280d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 38380d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 38480d59932Sopenharmony_ci 38580d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 38680d59932Sopenharmony_ciclCommandNDRangeKernelKHR( 38780d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 38880d59932Sopenharmony_ci cl_command_queue command_queue, 38980d59932Sopenharmony_ci const cl_ndrange_kernel_command_properties_khr* properties, 39080d59932Sopenharmony_ci cl_kernel kernel, 39180d59932Sopenharmony_ci cl_uint work_dim, 39280d59932Sopenharmony_ci const size_t* global_work_offset, 39380d59932Sopenharmony_ci const size_t* global_work_size, 39480d59932Sopenharmony_ci const size_t* local_work_size, 39580d59932Sopenharmony_ci cl_uint num_sync_points_in_wait_list, 39680d59932Sopenharmony_ci const cl_sync_point_khr* sync_point_wait_list, 39780d59932Sopenharmony_ci cl_sync_point_khr* sync_point, 39880d59932Sopenharmony_ci cl_mutable_command_khr* mutable_handle) ; 39980d59932Sopenharmony_ci 40080d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 40180d59932Sopenharmony_ciclGetCommandBufferInfoKHR( 40280d59932Sopenharmony_ci cl_command_buffer_khr command_buffer, 40380d59932Sopenharmony_ci cl_command_buffer_info_khr param_name, 40480d59932Sopenharmony_ci size_t param_value_size, 40580d59932Sopenharmony_ci void* param_value, 40680d59932Sopenharmony_ci size_t* param_value_size_ret) ; 40780d59932Sopenharmony_ci 40880d59932Sopenharmony_ci#endif /* CL_NO_PROTOTYPES */ 40980d59932Sopenharmony_ci 41080d59932Sopenharmony_ci/* cl_khr_fp64 extension - no extension #define since it has no functions */ 41180d59932Sopenharmony_ci/* CL_DEVICE_DOUBLE_FP_CONFIG is defined in CL.h for OpenCL >= 120 */ 41280d59932Sopenharmony_ci 41380d59932Sopenharmony_ci#if CL_TARGET_OPENCL_VERSION <= 110 41480d59932Sopenharmony_ci#define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032 41580d59932Sopenharmony_ci#endif 41680d59932Sopenharmony_ci 41780d59932Sopenharmony_ci/* cl_khr_fp16 extension - no extension #define since it has no functions */ 41880d59932Sopenharmony_ci#define CL_DEVICE_HALF_FP_CONFIG 0x1033 41980d59932Sopenharmony_ci 42080d59932Sopenharmony_ci/* Memory object destruction 42180d59932Sopenharmony_ci * 42280d59932Sopenharmony_ci * Apple extension for use to manage externally allocated buffers used with cl_mem objects with CL_MEM_USE_HOST_PTR 42380d59932Sopenharmony_ci * 42480d59932Sopenharmony_ci * Registers a user callback function that will be called when the memory object is deleted and its resources 42580d59932Sopenharmony_ci * freed. Each call to clSetMemObjectCallbackFn registers the specified user callback function on a callback 42680d59932Sopenharmony_ci * stack associated with memobj. The registered user callback functions are called in the reverse order in 42780d59932Sopenharmony_ci * which they were registered. The user callback functions are called and then the memory object is deleted 42880d59932Sopenharmony_ci * and its resources freed. This provides a mechanism for the application (and libraries) using memobj to be 42980d59932Sopenharmony_ci * notified when the memory referenced by host_ptr, specified when the memory object is created and used as 43080d59932Sopenharmony_ci * the storage bits for the memory object, can be reused or freed. 43180d59932Sopenharmony_ci * 43280d59932Sopenharmony_ci * The application may not call CL api's with the cl_mem object passed to the pfn_notify. 43380d59932Sopenharmony_ci * 43480d59932Sopenharmony_ci * Please check for the "cl_APPLE_SetMemObjectDestructor" extension using clGetDeviceInfo(CL_DEVICE_EXTENSIONS) 43580d59932Sopenharmony_ci * before using. 43680d59932Sopenharmony_ci */ 43780d59932Sopenharmony_ci#define cl_APPLE_SetMemObjectDestructor 1 43880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL clSetMemObjectDestructorAPPLE( cl_mem memobj, 43980d59932Sopenharmony_ci void (* pfn_notify)(cl_mem memobj, void * user_data), 44080d59932Sopenharmony_ci void * user_data) CL_API_SUFFIX__VERSION_1_0; 44180d59932Sopenharmony_ci 44280d59932Sopenharmony_ci 44380d59932Sopenharmony_ci/* Context Logging Functions 44480d59932Sopenharmony_ci * 44580d59932Sopenharmony_ci * The next three convenience functions are intended to be used as the pfn_notify parameter to clCreateContext(). 44680d59932Sopenharmony_ci * Please check for the "cl_APPLE_ContextLoggingFunctions" extension using clGetDeviceInfo(CL_DEVICE_EXTENSIONS) 44780d59932Sopenharmony_ci * before using. 44880d59932Sopenharmony_ci * 44980d59932Sopenharmony_ci * clLogMessagesToSystemLog forwards on all log messages to the Apple System Logger 45080d59932Sopenharmony_ci */ 45180d59932Sopenharmony_ci#define cl_APPLE_ContextLoggingFunctions 1 45280d59932Sopenharmony_ciextern CL_API_ENTRY void CL_API_CALL clLogMessagesToSystemLogAPPLE( const char * errstr, 45380d59932Sopenharmony_ci const void * private_info, 45480d59932Sopenharmony_ci size_t cb, 45580d59932Sopenharmony_ci void * user_data) CL_API_SUFFIX__VERSION_1_0; 45680d59932Sopenharmony_ci 45780d59932Sopenharmony_ci/* clLogMessagesToStdout sends all log messages to the file descriptor stdout */ 45880d59932Sopenharmony_ciextern CL_API_ENTRY void CL_API_CALL clLogMessagesToStdoutAPPLE( const char * errstr, 45980d59932Sopenharmony_ci const void * private_info, 46080d59932Sopenharmony_ci size_t cb, 46180d59932Sopenharmony_ci void * user_data) CL_API_SUFFIX__VERSION_1_0; 46280d59932Sopenharmony_ci 46380d59932Sopenharmony_ci/* clLogMessagesToStderr sends all log messages to the file descriptor stderr */ 46480d59932Sopenharmony_ciextern CL_API_ENTRY void CL_API_CALL clLogMessagesToStderrAPPLE( const char * errstr, 46580d59932Sopenharmony_ci const void * private_info, 46680d59932Sopenharmony_ci size_t cb, 46780d59932Sopenharmony_ci void * user_data) CL_API_SUFFIX__VERSION_1_0; 46880d59932Sopenharmony_ci 46980d59932Sopenharmony_ci 47080d59932Sopenharmony_ci/************************ 47180d59932Sopenharmony_ci* cl_khr_icd extension * 47280d59932Sopenharmony_ci************************/ 47380d59932Sopenharmony_ci#define cl_khr_icd 1 47480d59932Sopenharmony_ci 47580d59932Sopenharmony_ci/* cl_platform_info */ 47680d59932Sopenharmony_ci#define CL_PLATFORM_ICD_SUFFIX_KHR 0x0920 47780d59932Sopenharmony_ci 47880d59932Sopenharmony_ci/* Additional Error Codes */ 47980d59932Sopenharmony_ci#define CL_PLATFORM_NOT_FOUND_KHR -1001 48080d59932Sopenharmony_ci 48180d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 48280d59932Sopenharmony_ciclIcdGetPlatformIDsKHR(cl_uint num_entries, 48380d59932Sopenharmony_ci cl_platform_id * platforms, 48480d59932Sopenharmony_ci cl_uint * num_platforms); 48580d59932Sopenharmony_ci 48680d59932Sopenharmony_citypedef cl_int 48780d59932Sopenharmony_ci(CL_API_CALL *clIcdGetPlatformIDsKHR_fn)(cl_uint num_entries, 48880d59932Sopenharmony_ci cl_platform_id * platforms, 48980d59932Sopenharmony_ci cl_uint * num_platforms); 49080d59932Sopenharmony_ci 49180d59932Sopenharmony_ci 49280d59932Sopenharmony_ci/******************************* 49380d59932Sopenharmony_ci * cl_khr_il_program extension * 49480d59932Sopenharmony_ci *******************************/ 49580d59932Sopenharmony_ci#define cl_khr_il_program 1 49680d59932Sopenharmony_ci 49780d59932Sopenharmony_ci/* New property to clGetDeviceInfo for retrieving supported intermediate 49880d59932Sopenharmony_ci * languages 49980d59932Sopenharmony_ci */ 50080d59932Sopenharmony_ci#define CL_DEVICE_IL_VERSION_KHR 0x105B 50180d59932Sopenharmony_ci 50280d59932Sopenharmony_ci/* New property to clGetProgramInfo for retrieving for retrieving the IL of a 50380d59932Sopenharmony_ci * program 50480d59932Sopenharmony_ci */ 50580d59932Sopenharmony_ci#define CL_PROGRAM_IL_KHR 0x1169 50680d59932Sopenharmony_ci 50780d59932Sopenharmony_ciextern CL_API_ENTRY cl_program CL_API_CALL 50880d59932Sopenharmony_ciclCreateProgramWithILKHR(cl_context context, 50980d59932Sopenharmony_ci const void * il, 51080d59932Sopenharmony_ci size_t length, 51180d59932Sopenharmony_ci cl_int * errcode_ret); 51280d59932Sopenharmony_ci 51380d59932Sopenharmony_citypedef cl_program 51480d59932Sopenharmony_ci(CL_API_CALL *clCreateProgramWithILKHR_fn)(cl_context context, 51580d59932Sopenharmony_ci const void * il, 51680d59932Sopenharmony_ci size_t length, 51780d59932Sopenharmony_ci cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_2; 51880d59932Sopenharmony_ci 51980d59932Sopenharmony_ci/* Extension: cl_khr_image2d_from_buffer 52080d59932Sopenharmony_ci * 52180d59932Sopenharmony_ci * This extension allows a 2D image to be created from a cl_mem buffer without 52280d59932Sopenharmony_ci * a copy. The type associated with a 2D image created from a buffer in an 52380d59932Sopenharmony_ci * OpenCL program is image2d_t. Both the sampler and sampler-less read_image 52480d59932Sopenharmony_ci * built-in functions are supported for 2D images and 2D images created from 52580d59932Sopenharmony_ci * a buffer. Similarly, the write_image built-ins are also supported for 2D 52680d59932Sopenharmony_ci * images created from a buffer. 52780d59932Sopenharmony_ci * 52880d59932Sopenharmony_ci * When the 2D image from buffer is created, the client must specify the 52980d59932Sopenharmony_ci * width, height, image format (i.e. channel order and channel data type) 53080d59932Sopenharmony_ci * and optionally the row pitch. 53180d59932Sopenharmony_ci * 53280d59932Sopenharmony_ci * The pitch specified must be a multiple of 53380d59932Sopenharmony_ci * CL_DEVICE_IMAGE_PITCH_ALIGNMENT_KHR pixels. 53480d59932Sopenharmony_ci * The base address of the buffer must be aligned to 53580d59932Sopenharmony_ci * CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT_KHR pixels. 53680d59932Sopenharmony_ci */ 53780d59932Sopenharmony_ci 53880d59932Sopenharmony_ci#define CL_DEVICE_IMAGE_PITCH_ALIGNMENT_KHR 0x104A 53980d59932Sopenharmony_ci#define CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT_KHR 0x104B 54080d59932Sopenharmony_ci 54180d59932Sopenharmony_ci 54280d59932Sopenharmony_ci/************************************** 54380d59932Sopenharmony_ci * cl_khr_initialize_memory extension * 54480d59932Sopenharmony_ci **************************************/ 54580d59932Sopenharmony_ci 54680d59932Sopenharmony_ci#define CL_CONTEXT_MEMORY_INITIALIZE_KHR 0x2030 54780d59932Sopenharmony_ci 54880d59932Sopenharmony_ci 54980d59932Sopenharmony_ci/************************************** 55080d59932Sopenharmony_ci * cl_khr_terminate_context extension * 55180d59932Sopenharmony_ci **************************************/ 55280d59932Sopenharmony_ci 55380d59932Sopenharmony_ci#define CL_CONTEXT_TERMINATED_KHR -1121 55480d59932Sopenharmony_ci 55580d59932Sopenharmony_ci#define CL_DEVICE_TERMINATE_CAPABILITY_KHR 0x2031 55680d59932Sopenharmony_ci#define CL_CONTEXT_TERMINATE_KHR 0x2032 55780d59932Sopenharmony_ci 55880d59932Sopenharmony_ci#define cl_khr_terminate_context 1 55980d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 56080d59932Sopenharmony_ciclTerminateContextKHR(cl_context context) CL_API_SUFFIX__VERSION_1_2; 56180d59932Sopenharmony_ci 56280d59932Sopenharmony_citypedef cl_int 56380d59932Sopenharmony_ci(CL_API_CALL *clTerminateContextKHR_fn)(cl_context context) CL_API_SUFFIX__VERSION_1_2; 56480d59932Sopenharmony_ci 56580d59932Sopenharmony_ci 56680d59932Sopenharmony_ci/* 56780d59932Sopenharmony_ci * Extension: cl_khr_spir 56880d59932Sopenharmony_ci * 56980d59932Sopenharmony_ci * This extension adds support to create an OpenCL program object from a 57080d59932Sopenharmony_ci * Standard Portable Intermediate Representation (SPIR) instance 57180d59932Sopenharmony_ci */ 57280d59932Sopenharmony_ci 57380d59932Sopenharmony_ci#define CL_DEVICE_SPIR_VERSIONS 0x40E0 57480d59932Sopenharmony_ci#define CL_PROGRAM_BINARY_TYPE_INTERMEDIATE 0x40E1 57580d59932Sopenharmony_ci 57680d59932Sopenharmony_ci 57780d59932Sopenharmony_ci/***************************************** 57880d59932Sopenharmony_ci * cl_khr_create_command_queue extension * 57980d59932Sopenharmony_ci *****************************************/ 58080d59932Sopenharmony_ci#define cl_khr_create_command_queue 1 58180d59932Sopenharmony_ci 58280d59932Sopenharmony_citypedef cl_properties cl_queue_properties_khr; 58380d59932Sopenharmony_ci 58480d59932Sopenharmony_ciextern CL_API_ENTRY cl_command_queue CL_API_CALL 58580d59932Sopenharmony_ciclCreateCommandQueueWithPropertiesKHR(cl_context context, 58680d59932Sopenharmony_ci cl_device_id device, 58780d59932Sopenharmony_ci const cl_queue_properties_khr* properties, 58880d59932Sopenharmony_ci cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; 58980d59932Sopenharmony_ci 59080d59932Sopenharmony_citypedef cl_command_queue 59180d59932Sopenharmony_ci(CL_API_CALL *clCreateCommandQueueWithPropertiesKHR_fn)(cl_context context, 59280d59932Sopenharmony_ci cl_device_id device, 59380d59932Sopenharmony_ci const cl_queue_properties_khr* properties, 59480d59932Sopenharmony_ci cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; 59580d59932Sopenharmony_ci 59680d59932Sopenharmony_ci 59780d59932Sopenharmony_ci/****************************************** 59880d59932Sopenharmony_ci* cl_nv_device_attribute_query extension * 59980d59932Sopenharmony_ci******************************************/ 60080d59932Sopenharmony_ci 60180d59932Sopenharmony_ci/* cl_nv_device_attribute_query extension - no extension #define since it has no functions */ 60280d59932Sopenharmony_ci#define CL_DEVICE_COMPUTE_CAPABILITY_MAJOR_NV 0x4000 60380d59932Sopenharmony_ci#define CL_DEVICE_COMPUTE_CAPABILITY_MINOR_NV 0x4001 60480d59932Sopenharmony_ci#define CL_DEVICE_REGISTERS_PER_BLOCK_NV 0x4002 60580d59932Sopenharmony_ci#define CL_DEVICE_WARP_SIZE_NV 0x4003 60680d59932Sopenharmony_ci#define CL_DEVICE_GPU_OVERLAP_NV 0x4004 60780d59932Sopenharmony_ci#define CL_DEVICE_KERNEL_EXEC_TIMEOUT_NV 0x4005 60880d59932Sopenharmony_ci#define CL_DEVICE_INTEGRATED_MEMORY_NV 0x4006 60980d59932Sopenharmony_ci 61080d59932Sopenharmony_ci 61180d59932Sopenharmony_ci/********************************* 61280d59932Sopenharmony_ci* cl_amd_device_attribute_query * 61380d59932Sopenharmony_ci*********************************/ 61480d59932Sopenharmony_ci 61580d59932Sopenharmony_ci#define CL_DEVICE_PROFILING_TIMER_OFFSET_AMD 0x4036 61680d59932Sopenharmony_ci#define CL_DEVICE_TOPOLOGY_AMD 0x4037 61780d59932Sopenharmony_ci#define CL_DEVICE_BOARD_NAME_AMD 0x4038 61880d59932Sopenharmony_ci#define CL_DEVICE_GLOBAL_FREE_MEMORY_AMD 0x4039 61980d59932Sopenharmony_ci#define CL_DEVICE_SIMD_PER_COMPUTE_UNIT_AMD 0x4040 62080d59932Sopenharmony_ci#define CL_DEVICE_SIMD_WIDTH_AMD 0x4041 62180d59932Sopenharmony_ci#define CL_DEVICE_SIMD_INSTRUCTION_WIDTH_AMD 0x4042 62280d59932Sopenharmony_ci#define CL_DEVICE_WAVEFRONT_WIDTH_AMD 0x4043 62380d59932Sopenharmony_ci#define CL_DEVICE_GLOBAL_MEM_CHANNELS_AMD 0x4044 62480d59932Sopenharmony_ci#define CL_DEVICE_GLOBAL_MEM_CHANNEL_BANKS_AMD 0x4045 62580d59932Sopenharmony_ci#define CL_DEVICE_GLOBAL_MEM_CHANNEL_BANK_WIDTH_AMD 0x4046 62680d59932Sopenharmony_ci#define CL_DEVICE_LOCAL_MEM_SIZE_PER_COMPUTE_UNIT_AMD 0x4047 62780d59932Sopenharmony_ci#define CL_DEVICE_LOCAL_MEM_BANKS_AMD 0x4048 62880d59932Sopenharmony_ci#define CL_DEVICE_THREAD_TRACE_SUPPORTED_AMD 0x4049 62980d59932Sopenharmony_ci#define CL_DEVICE_GFXIP_MAJOR_AMD 0x404A 63080d59932Sopenharmony_ci#define CL_DEVICE_GFXIP_MINOR_AMD 0x404B 63180d59932Sopenharmony_ci#define CL_DEVICE_AVAILABLE_ASYNC_QUEUES_AMD 0x404C 63280d59932Sopenharmony_ci#define CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_AMD 0x4030 63380d59932Sopenharmony_ci#define CL_DEVICE_MAX_WORK_GROUP_SIZE_AMD 0x4031 63480d59932Sopenharmony_ci#define CL_DEVICE_PREFERRED_CONSTANT_BUFFER_SIZE_AMD 0x4033 63580d59932Sopenharmony_ci#define CL_DEVICE_PCIE_ID_AMD 0x4034 63680d59932Sopenharmony_ci 63780d59932Sopenharmony_ci 63880d59932Sopenharmony_ci/********************************* 63980d59932Sopenharmony_ci* cl_arm_printf extension 64080d59932Sopenharmony_ci*********************************/ 64180d59932Sopenharmony_ci 64280d59932Sopenharmony_ci#define CL_PRINTF_CALLBACK_ARM 0x40B0 64380d59932Sopenharmony_ci#define CL_PRINTF_BUFFERSIZE_ARM 0x40B1 64480d59932Sopenharmony_ci 64580d59932Sopenharmony_ci 64680d59932Sopenharmony_ci/*********************************** 64780d59932Sopenharmony_ci* cl_ext_device_fission extension 64880d59932Sopenharmony_ci***********************************/ 64980d59932Sopenharmony_ci#define cl_ext_device_fission 1 65080d59932Sopenharmony_ci 65180d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 65280d59932Sopenharmony_ciclReleaseDeviceEXT(cl_device_id device) CL_API_SUFFIX__VERSION_1_1; 65380d59932Sopenharmony_ci 65480d59932Sopenharmony_citypedef cl_int 65580d59932Sopenharmony_ci(CL_API_CALL *clReleaseDeviceEXT_fn)(cl_device_id device) CL_API_SUFFIX__VERSION_1_1; 65680d59932Sopenharmony_ci 65780d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 65880d59932Sopenharmony_ciclRetainDeviceEXT(cl_device_id device) CL_API_SUFFIX__VERSION_1_1; 65980d59932Sopenharmony_ci 66080d59932Sopenharmony_citypedef cl_int 66180d59932Sopenharmony_ci(CL_API_CALL *clRetainDeviceEXT_fn)(cl_device_id device) CL_API_SUFFIX__VERSION_1_1; 66280d59932Sopenharmony_ci 66380d59932Sopenharmony_citypedef cl_ulong cl_device_partition_property_ext; 66480d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 66580d59932Sopenharmony_ciclCreateSubDevicesEXT(cl_device_id in_device, 66680d59932Sopenharmony_ci const cl_device_partition_property_ext * properties, 66780d59932Sopenharmony_ci cl_uint num_entries, 66880d59932Sopenharmony_ci cl_device_id * out_devices, 66980d59932Sopenharmony_ci cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_1; 67080d59932Sopenharmony_ci 67180d59932Sopenharmony_citypedef cl_int 67280d59932Sopenharmony_ci(CL_API_CALL * clCreateSubDevicesEXT_fn)(cl_device_id in_device, 67380d59932Sopenharmony_ci const cl_device_partition_property_ext * properties, 67480d59932Sopenharmony_ci cl_uint num_entries, 67580d59932Sopenharmony_ci cl_device_id * out_devices, 67680d59932Sopenharmony_ci cl_uint * num_devices) CL_API_SUFFIX__VERSION_1_1; 67780d59932Sopenharmony_ci 67880d59932Sopenharmony_ci/* cl_device_partition_property_ext */ 67980d59932Sopenharmony_ci#define CL_DEVICE_PARTITION_EQUALLY_EXT 0x4050 68080d59932Sopenharmony_ci#define CL_DEVICE_PARTITION_BY_COUNTS_EXT 0x4051 68180d59932Sopenharmony_ci#define CL_DEVICE_PARTITION_BY_NAMES_EXT 0x4052 68280d59932Sopenharmony_ci#define CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN_EXT 0x4053 68380d59932Sopenharmony_ci 68480d59932Sopenharmony_ci/* clDeviceGetInfo selectors */ 68580d59932Sopenharmony_ci#define CL_DEVICE_PARENT_DEVICE_EXT 0x4054 68680d59932Sopenharmony_ci#define CL_DEVICE_PARTITION_TYPES_EXT 0x4055 68780d59932Sopenharmony_ci#define CL_DEVICE_AFFINITY_DOMAINS_EXT 0x4056 68880d59932Sopenharmony_ci#define CL_DEVICE_REFERENCE_COUNT_EXT 0x4057 68980d59932Sopenharmony_ci#define CL_DEVICE_PARTITION_STYLE_EXT 0x4058 69080d59932Sopenharmony_ci 69180d59932Sopenharmony_ci/* error codes */ 69280d59932Sopenharmony_ci#define CL_DEVICE_PARTITION_FAILED_EXT -1057 69380d59932Sopenharmony_ci#define CL_INVALID_PARTITION_COUNT_EXT -1058 69480d59932Sopenharmony_ci#define CL_INVALID_PARTITION_NAME_EXT -1059 69580d59932Sopenharmony_ci 69680d59932Sopenharmony_ci/* CL_AFFINITY_DOMAINs */ 69780d59932Sopenharmony_ci#define CL_AFFINITY_DOMAIN_L1_CACHE_EXT 0x1 69880d59932Sopenharmony_ci#define CL_AFFINITY_DOMAIN_L2_CACHE_EXT 0x2 69980d59932Sopenharmony_ci#define CL_AFFINITY_DOMAIN_L3_CACHE_EXT 0x3 70080d59932Sopenharmony_ci#define CL_AFFINITY_DOMAIN_L4_CACHE_EXT 0x4 70180d59932Sopenharmony_ci#define CL_AFFINITY_DOMAIN_NUMA_EXT 0x10 70280d59932Sopenharmony_ci#define CL_AFFINITY_DOMAIN_NEXT_FISSIONABLE_EXT 0x100 70380d59932Sopenharmony_ci 70480d59932Sopenharmony_ci/* cl_device_partition_property_ext list terminators */ 70580d59932Sopenharmony_ci#define CL_PROPERTIES_LIST_END_EXT ((cl_device_partition_property_ext) 0) 70680d59932Sopenharmony_ci#define CL_PARTITION_BY_COUNTS_LIST_END_EXT ((cl_device_partition_property_ext) 0) 70780d59932Sopenharmony_ci#define CL_PARTITION_BY_NAMES_LIST_END_EXT ((cl_device_partition_property_ext) 0 - 1) 70880d59932Sopenharmony_ci 70980d59932Sopenharmony_ci 71080d59932Sopenharmony_ci/*********************************** 71180d59932Sopenharmony_ci * cl_ext_migrate_memobject extension definitions 71280d59932Sopenharmony_ci ***********************************/ 71380d59932Sopenharmony_ci#define cl_ext_migrate_memobject 1 71480d59932Sopenharmony_ci 71580d59932Sopenharmony_citypedef cl_bitfield cl_mem_migration_flags_ext; 71680d59932Sopenharmony_ci 71780d59932Sopenharmony_ci#define CL_MIGRATE_MEM_OBJECT_HOST_EXT 0x1 71880d59932Sopenharmony_ci 71980d59932Sopenharmony_ci#define CL_COMMAND_MIGRATE_MEM_OBJECT_EXT 0x4040 72080d59932Sopenharmony_ci 72180d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 72280d59932Sopenharmony_ciclEnqueueMigrateMemObjectEXT(cl_command_queue command_queue, 72380d59932Sopenharmony_ci cl_uint num_mem_objects, 72480d59932Sopenharmony_ci const cl_mem * mem_objects, 72580d59932Sopenharmony_ci cl_mem_migration_flags_ext flags, 72680d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 72780d59932Sopenharmony_ci const cl_event * event_wait_list, 72880d59932Sopenharmony_ci cl_event * event); 72980d59932Sopenharmony_ci 73080d59932Sopenharmony_citypedef cl_int 73180d59932Sopenharmony_ci(CL_API_CALL *clEnqueueMigrateMemObjectEXT_fn)(cl_command_queue command_queue, 73280d59932Sopenharmony_ci cl_uint num_mem_objects, 73380d59932Sopenharmony_ci const cl_mem * mem_objects, 73480d59932Sopenharmony_ci cl_mem_migration_flags_ext flags, 73580d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 73680d59932Sopenharmony_ci const cl_event * event_wait_list, 73780d59932Sopenharmony_ci cl_event * event); 73880d59932Sopenharmony_ci 73980d59932Sopenharmony_ci 74080d59932Sopenharmony_ci/********************************* 74180d59932Sopenharmony_ci* cl_ext_cxx_for_opencl extension 74280d59932Sopenharmony_ci*********************************/ 74380d59932Sopenharmony_ci#define cl_ext_cxx_for_opencl 1 74480d59932Sopenharmony_ci 74580d59932Sopenharmony_ci#define CL_DEVICE_CXX_FOR_OPENCL_NUMERIC_VERSION_EXT 0x4230 74680d59932Sopenharmony_ci 74780d59932Sopenharmony_ci/********************************* 74880d59932Sopenharmony_ci* cl_qcom_ext_host_ptr extension 74980d59932Sopenharmony_ci*********************************/ 75080d59932Sopenharmony_ci#define cl_qcom_ext_host_ptr 1 75180d59932Sopenharmony_ci 75280d59932Sopenharmony_ci#define CL_MEM_EXT_HOST_PTR_QCOM (1 << 29) 75380d59932Sopenharmony_ci 75480d59932Sopenharmony_ci#define CL_DEVICE_EXT_MEM_PADDING_IN_BYTES_QCOM 0x40A0 75580d59932Sopenharmony_ci#define CL_DEVICE_PAGE_SIZE_QCOM 0x40A1 75680d59932Sopenharmony_ci#define CL_IMAGE_ROW_ALIGNMENT_QCOM 0x40A2 75780d59932Sopenharmony_ci#define CL_IMAGE_SLICE_ALIGNMENT_QCOM 0x40A3 75880d59932Sopenharmony_ci#define CL_MEM_HOST_UNCACHED_QCOM 0x40A4 75980d59932Sopenharmony_ci#define CL_MEM_HOST_WRITEBACK_QCOM 0x40A5 76080d59932Sopenharmony_ci#define CL_MEM_HOST_WRITETHROUGH_QCOM 0x40A6 76180d59932Sopenharmony_ci#define CL_MEM_HOST_WRITE_COMBINING_QCOM 0x40A7 76280d59932Sopenharmony_ci 76380d59932Sopenharmony_citypedef cl_uint cl_image_pitch_info_qcom; 76480d59932Sopenharmony_ci 76580d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 76680d59932Sopenharmony_ciclGetDeviceImageInfoQCOM(cl_device_id device, 76780d59932Sopenharmony_ci size_t image_width, 76880d59932Sopenharmony_ci size_t image_height, 76980d59932Sopenharmony_ci const cl_image_format *image_format, 77080d59932Sopenharmony_ci cl_image_pitch_info_qcom param_name, 77180d59932Sopenharmony_ci size_t param_value_size, 77280d59932Sopenharmony_ci void *param_value, 77380d59932Sopenharmony_ci size_t *param_value_size_ret); 77480d59932Sopenharmony_ci 77580d59932Sopenharmony_citypedef struct _cl_mem_ext_host_ptr 77680d59932Sopenharmony_ci{ 77780d59932Sopenharmony_ci /* Type of external memory allocation. */ 77880d59932Sopenharmony_ci /* Legal values will be defined in layered extensions. */ 77980d59932Sopenharmony_ci cl_uint allocation_type; 78080d59932Sopenharmony_ci 78180d59932Sopenharmony_ci /* Host cache policy for this external memory allocation. */ 78280d59932Sopenharmony_ci cl_uint host_cache_policy; 78380d59932Sopenharmony_ci 78480d59932Sopenharmony_ci} cl_mem_ext_host_ptr; 78580d59932Sopenharmony_ci 78680d59932Sopenharmony_ci 78780d59932Sopenharmony_ci/******************************************* 78880d59932Sopenharmony_ci* cl_qcom_ext_host_ptr_iocoherent extension 78980d59932Sopenharmony_ci********************************************/ 79080d59932Sopenharmony_ci 79180d59932Sopenharmony_ci/* Cache policy specifying io-coherence */ 79280d59932Sopenharmony_ci#define CL_MEM_HOST_IOCOHERENT_QCOM 0x40A9 79380d59932Sopenharmony_ci 79480d59932Sopenharmony_ci 79580d59932Sopenharmony_ci/********************************* 79680d59932Sopenharmony_ci* cl_qcom_ion_host_ptr extension 79780d59932Sopenharmony_ci*********************************/ 79880d59932Sopenharmony_ci 79980d59932Sopenharmony_ci#define CL_MEM_ION_HOST_PTR_QCOM 0x40A8 80080d59932Sopenharmony_ci 80180d59932Sopenharmony_citypedef struct _cl_mem_ion_host_ptr 80280d59932Sopenharmony_ci{ 80380d59932Sopenharmony_ci /* Type of external memory allocation. */ 80480d59932Sopenharmony_ci /* Must be CL_MEM_ION_HOST_PTR_QCOM for ION allocations. */ 80580d59932Sopenharmony_ci cl_mem_ext_host_ptr ext_host_ptr; 80680d59932Sopenharmony_ci 80780d59932Sopenharmony_ci /* ION file descriptor */ 80880d59932Sopenharmony_ci int ion_filedesc; 80980d59932Sopenharmony_ci 81080d59932Sopenharmony_ci /* Host pointer to the ION allocated memory */ 81180d59932Sopenharmony_ci void* ion_hostptr; 81280d59932Sopenharmony_ci 81380d59932Sopenharmony_ci} cl_mem_ion_host_ptr; 81480d59932Sopenharmony_ci 81580d59932Sopenharmony_ci 81680d59932Sopenharmony_ci/********************************* 81780d59932Sopenharmony_ci* cl_qcom_android_native_buffer_host_ptr extension 81880d59932Sopenharmony_ci*********************************/ 81980d59932Sopenharmony_ci 82080d59932Sopenharmony_ci#define CL_MEM_ANDROID_NATIVE_BUFFER_HOST_PTR_QCOM 0x40C6 82180d59932Sopenharmony_ci 82280d59932Sopenharmony_citypedef struct _cl_mem_android_native_buffer_host_ptr 82380d59932Sopenharmony_ci{ 82480d59932Sopenharmony_ci /* Type of external memory allocation. */ 82580d59932Sopenharmony_ci /* Must be CL_MEM_ANDROID_NATIVE_BUFFER_HOST_PTR_QCOM for Android native buffers. */ 82680d59932Sopenharmony_ci cl_mem_ext_host_ptr ext_host_ptr; 82780d59932Sopenharmony_ci 82880d59932Sopenharmony_ci /* Virtual pointer to the android native buffer */ 82980d59932Sopenharmony_ci void* anb_ptr; 83080d59932Sopenharmony_ci 83180d59932Sopenharmony_ci} cl_mem_android_native_buffer_host_ptr; 83280d59932Sopenharmony_ci 83380d59932Sopenharmony_ci 83480d59932Sopenharmony_ci/****************************************** 83580d59932Sopenharmony_ci * cl_img_yuv_image extension * 83680d59932Sopenharmony_ci ******************************************/ 83780d59932Sopenharmony_ci 83880d59932Sopenharmony_ci/* Image formats used in clCreateImage */ 83980d59932Sopenharmony_ci#define CL_NV21_IMG 0x40D0 84080d59932Sopenharmony_ci#define CL_YV12_IMG 0x40D1 84180d59932Sopenharmony_ci 84280d59932Sopenharmony_ci 84380d59932Sopenharmony_ci/****************************************** 84480d59932Sopenharmony_ci * cl_img_cached_allocations extension * 84580d59932Sopenharmony_ci ******************************************/ 84680d59932Sopenharmony_ci 84780d59932Sopenharmony_ci/* Flag values used by clCreateBuffer */ 84880d59932Sopenharmony_ci#define CL_MEM_USE_UNCACHED_CPU_MEMORY_IMG (1 << 26) 84980d59932Sopenharmony_ci#define CL_MEM_USE_CACHED_CPU_MEMORY_IMG (1 << 27) 85080d59932Sopenharmony_ci 85180d59932Sopenharmony_ci 85280d59932Sopenharmony_ci/****************************************** 85380d59932Sopenharmony_ci * cl_img_use_gralloc_ptr extension * 85480d59932Sopenharmony_ci ******************************************/ 85580d59932Sopenharmony_ci#define cl_img_use_gralloc_ptr 1 85680d59932Sopenharmony_ci 85780d59932Sopenharmony_ci/* Flag values used by clCreateBuffer */ 85880d59932Sopenharmony_ci#define CL_MEM_USE_GRALLOC_PTR_IMG (1 << 28) 85980d59932Sopenharmony_ci 86080d59932Sopenharmony_ci/* To be used by clGetEventInfo: */ 86180d59932Sopenharmony_ci#define CL_COMMAND_ACQUIRE_GRALLOC_OBJECTS_IMG 0x40D2 86280d59932Sopenharmony_ci#define CL_COMMAND_RELEASE_GRALLOC_OBJECTS_IMG 0x40D3 86380d59932Sopenharmony_ci 86480d59932Sopenharmony_ci/* Error codes from clEnqueueAcquireGrallocObjectsIMG and clEnqueueReleaseGrallocObjectsIMG */ 86580d59932Sopenharmony_ci#define CL_GRALLOC_RESOURCE_NOT_ACQUIRED_IMG 0x40D4 86680d59932Sopenharmony_ci#define CL_INVALID_GRALLOC_OBJECT_IMG 0x40D5 86780d59932Sopenharmony_ci 86880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 86980d59932Sopenharmony_ciclEnqueueAcquireGrallocObjectsIMG(cl_command_queue command_queue, 87080d59932Sopenharmony_ci cl_uint num_objects, 87180d59932Sopenharmony_ci const cl_mem * mem_objects, 87280d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 87380d59932Sopenharmony_ci const cl_event * event_wait_list, 87480d59932Sopenharmony_ci cl_event * event) CL_API_SUFFIX__VERSION_1_2; 87580d59932Sopenharmony_ci 87680d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 87780d59932Sopenharmony_ciclEnqueueReleaseGrallocObjectsIMG(cl_command_queue command_queue, 87880d59932Sopenharmony_ci cl_uint num_objects, 87980d59932Sopenharmony_ci const cl_mem * mem_objects, 88080d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 88180d59932Sopenharmony_ci const cl_event * event_wait_list, 88280d59932Sopenharmony_ci cl_event * event) CL_API_SUFFIX__VERSION_1_2; 88380d59932Sopenharmony_ci 88480d59932Sopenharmony_ci/****************************************** 88580d59932Sopenharmony_ci * cl_img_generate_mipmap extension * 88680d59932Sopenharmony_ci ******************************************/ 88780d59932Sopenharmony_ci#define cl_img_generate_mipmap 1 88880d59932Sopenharmony_ci 88980d59932Sopenharmony_citypedef cl_uint cl_mipmap_filter_mode_img; 89080d59932Sopenharmony_ci 89180d59932Sopenharmony_ci/* To be used by clEnqueueGenerateMipmapIMG */ 89280d59932Sopenharmony_ci#define CL_MIPMAP_FILTER_ANY_IMG 0x0 89380d59932Sopenharmony_ci#define CL_MIPMAP_FILTER_BOX_IMG 0x1 89480d59932Sopenharmony_ci 89580d59932Sopenharmony_ci/* To be used by clGetEventInfo */ 89680d59932Sopenharmony_ci#define CL_COMMAND_GENERATE_MIPMAP_IMG 0x40D6 89780d59932Sopenharmony_ci 89880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 89980d59932Sopenharmony_ciclEnqueueGenerateMipmapIMG(cl_command_queue command_queue, 90080d59932Sopenharmony_ci cl_mem src_image, 90180d59932Sopenharmony_ci cl_mem dst_image, 90280d59932Sopenharmony_ci cl_mipmap_filter_mode_img mipmap_filter_mode, 90380d59932Sopenharmony_ci const size_t *array_region, 90480d59932Sopenharmony_ci const size_t *mip_region, 90580d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 90680d59932Sopenharmony_ci const cl_event *event_wait_list, 90780d59932Sopenharmony_ci cl_event *event) CL_API_SUFFIX__VERSION_1_2; 90880d59932Sopenharmony_ci 90980d59932Sopenharmony_ci/****************************************** 91080d59932Sopenharmony_ci * cl_img_mem_properties extension * 91180d59932Sopenharmony_ci ******************************************/ 91280d59932Sopenharmony_ci#define cl_img_mem_properties 1 91380d59932Sopenharmony_ci 91480d59932Sopenharmony_ci/* To be used by clCreateBufferWithProperties */ 91580d59932Sopenharmony_ci#define CL_MEM_ALLOC_FLAGS_IMG 0x40D7 91680d59932Sopenharmony_ci 91780d59932Sopenharmony_ci/* To be used wiith the CL_MEM_ALLOC_FLAGS_IMG property */ 91880d59932Sopenharmony_citypedef cl_bitfield cl_mem_alloc_flags_img; 91980d59932Sopenharmony_ci 92080d59932Sopenharmony_ci/* To be used with cl_mem_alloc_flags_img */ 92180d59932Sopenharmony_ci#define CL_MEM_ALLOC_RELAX_REQUIREMENTS_IMG (1 << 0) 92280d59932Sopenharmony_ci 92380d59932Sopenharmony_ci/********************************* 92480d59932Sopenharmony_ci* cl_khr_subgroups extension 92580d59932Sopenharmony_ci*********************************/ 92680d59932Sopenharmony_ci#define cl_khr_subgroups 1 92780d59932Sopenharmony_ci 92880d59932Sopenharmony_ci#if !defined(CL_VERSION_2_1) 92980d59932Sopenharmony_ci/* For OpenCL 2.1 and newer, cl_kernel_sub_group_info is declared in CL.h. 93080d59932Sopenharmony_ci In hindsight, there should have been a khr suffix on this type for 93180d59932Sopenharmony_ci the extension, but keeping it un-suffixed to maintain backwards 93280d59932Sopenharmony_ci compatibility. */ 93380d59932Sopenharmony_citypedef cl_uint cl_kernel_sub_group_info; 93480d59932Sopenharmony_ci#endif 93580d59932Sopenharmony_ci 93680d59932Sopenharmony_ci/* cl_kernel_sub_group_info */ 93780d59932Sopenharmony_ci#define CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE_KHR 0x2033 93880d59932Sopenharmony_ci#define CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE_KHR 0x2034 93980d59932Sopenharmony_ci 94080d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 94180d59932Sopenharmony_ciclGetKernelSubGroupInfoKHR(cl_kernel in_kernel, 94280d59932Sopenharmony_ci cl_device_id in_device, 94380d59932Sopenharmony_ci cl_kernel_sub_group_info param_name, 94480d59932Sopenharmony_ci size_t input_value_size, 94580d59932Sopenharmony_ci const void * input_value, 94680d59932Sopenharmony_ci size_t param_value_size, 94780d59932Sopenharmony_ci void * param_value, 94880d59932Sopenharmony_ci size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_2_0_DEPRECATED; 94980d59932Sopenharmony_ci 95080d59932Sopenharmony_citypedef cl_int 95180d59932Sopenharmony_ci(CL_API_CALL * clGetKernelSubGroupInfoKHR_fn)(cl_kernel in_kernel, 95280d59932Sopenharmony_ci cl_device_id in_device, 95380d59932Sopenharmony_ci cl_kernel_sub_group_info param_name, 95480d59932Sopenharmony_ci size_t input_value_size, 95580d59932Sopenharmony_ci const void * input_value, 95680d59932Sopenharmony_ci size_t param_value_size, 95780d59932Sopenharmony_ci void * param_value, 95880d59932Sopenharmony_ci size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_2_0_DEPRECATED; 95980d59932Sopenharmony_ci 96080d59932Sopenharmony_ci 96180d59932Sopenharmony_ci/********************************* 96280d59932Sopenharmony_ci* cl_khr_mipmap_image extension 96380d59932Sopenharmony_ci*********************************/ 96480d59932Sopenharmony_ci 96580d59932Sopenharmony_ci/* cl_sampler_properties */ 96680d59932Sopenharmony_ci#define CL_SAMPLER_MIP_FILTER_MODE_KHR 0x1155 96780d59932Sopenharmony_ci#define CL_SAMPLER_LOD_MIN_KHR 0x1156 96880d59932Sopenharmony_ci#define CL_SAMPLER_LOD_MAX_KHR 0x1157 96980d59932Sopenharmony_ci 97080d59932Sopenharmony_ci 97180d59932Sopenharmony_ci/********************************* 97280d59932Sopenharmony_ci* cl_khr_priority_hints extension 97380d59932Sopenharmony_ci*********************************/ 97480d59932Sopenharmony_ci/* This extension define is for backwards compatibility. 97580d59932Sopenharmony_ci It shouldn't be required since this extension has no new functions. */ 97680d59932Sopenharmony_ci#define cl_khr_priority_hints 1 97780d59932Sopenharmony_ci 97880d59932Sopenharmony_citypedef cl_uint cl_queue_priority_khr; 97980d59932Sopenharmony_ci 98080d59932Sopenharmony_ci/* cl_command_queue_properties */ 98180d59932Sopenharmony_ci#define CL_QUEUE_PRIORITY_KHR 0x1096 98280d59932Sopenharmony_ci 98380d59932Sopenharmony_ci/* cl_queue_priority_khr */ 98480d59932Sopenharmony_ci#define CL_QUEUE_PRIORITY_HIGH_KHR (1<<0) 98580d59932Sopenharmony_ci#define CL_QUEUE_PRIORITY_MED_KHR (1<<1) 98680d59932Sopenharmony_ci#define CL_QUEUE_PRIORITY_LOW_KHR (1<<2) 98780d59932Sopenharmony_ci 98880d59932Sopenharmony_ci 98980d59932Sopenharmony_ci/********************************* 99080d59932Sopenharmony_ci* cl_khr_throttle_hints extension 99180d59932Sopenharmony_ci*********************************/ 99280d59932Sopenharmony_ci/* This extension define is for backwards compatibility. 99380d59932Sopenharmony_ci It shouldn't be required since this extension has no new functions. */ 99480d59932Sopenharmony_ci#define cl_khr_throttle_hints 1 99580d59932Sopenharmony_ci 99680d59932Sopenharmony_citypedef cl_uint cl_queue_throttle_khr; 99780d59932Sopenharmony_ci 99880d59932Sopenharmony_ci/* cl_command_queue_properties */ 99980d59932Sopenharmony_ci#define CL_QUEUE_THROTTLE_KHR 0x1097 100080d59932Sopenharmony_ci 100180d59932Sopenharmony_ci/* cl_queue_throttle_khr */ 100280d59932Sopenharmony_ci#define CL_QUEUE_THROTTLE_HIGH_KHR (1<<0) 100380d59932Sopenharmony_ci#define CL_QUEUE_THROTTLE_MED_KHR (1<<1) 100480d59932Sopenharmony_ci#define CL_QUEUE_THROTTLE_LOW_KHR (1<<2) 100580d59932Sopenharmony_ci 100680d59932Sopenharmony_ci 100780d59932Sopenharmony_ci/********************************* 100880d59932Sopenharmony_ci* cl_khr_subgroup_named_barrier 100980d59932Sopenharmony_ci*********************************/ 101080d59932Sopenharmony_ci/* This extension define is for backwards compatibility. 101180d59932Sopenharmony_ci It shouldn't be required since this extension has no new functions. */ 101280d59932Sopenharmony_ci#define cl_khr_subgroup_named_barrier 1 101380d59932Sopenharmony_ci 101480d59932Sopenharmony_ci/* cl_device_info */ 101580d59932Sopenharmony_ci#define CL_DEVICE_MAX_NAMED_BARRIER_COUNT_KHR 0x2035 101680d59932Sopenharmony_ci 101780d59932Sopenharmony_ci 101880d59932Sopenharmony_ci/********************************* 101980d59932Sopenharmony_ci* cl_khr_extended_versioning 102080d59932Sopenharmony_ci*********************************/ 102180d59932Sopenharmony_ci 102280d59932Sopenharmony_ci#define cl_khr_extended_versioning 1 102380d59932Sopenharmony_ci 102480d59932Sopenharmony_ci#define CL_VERSION_MAJOR_BITS_KHR (10) 102580d59932Sopenharmony_ci#define CL_VERSION_MINOR_BITS_KHR (10) 102680d59932Sopenharmony_ci#define CL_VERSION_PATCH_BITS_KHR (12) 102780d59932Sopenharmony_ci 102880d59932Sopenharmony_ci#define CL_VERSION_MAJOR_MASK_KHR ((1 << CL_VERSION_MAJOR_BITS_KHR) - 1) 102980d59932Sopenharmony_ci#define CL_VERSION_MINOR_MASK_KHR ((1 << CL_VERSION_MINOR_BITS_KHR) - 1) 103080d59932Sopenharmony_ci#define CL_VERSION_PATCH_MASK_KHR ((1 << CL_VERSION_PATCH_BITS_KHR) - 1) 103180d59932Sopenharmony_ci 103280d59932Sopenharmony_ci#define CL_VERSION_MAJOR_KHR(version) ((version) >> (CL_VERSION_MINOR_BITS_KHR + CL_VERSION_PATCH_BITS_KHR)) 103380d59932Sopenharmony_ci#define CL_VERSION_MINOR_KHR(version) (((version) >> CL_VERSION_PATCH_BITS_KHR) & CL_VERSION_MINOR_MASK_KHR) 103480d59932Sopenharmony_ci#define CL_VERSION_PATCH_KHR(version) ((version) & CL_VERSION_PATCH_MASK_KHR) 103580d59932Sopenharmony_ci 103680d59932Sopenharmony_ci#define CL_MAKE_VERSION_KHR(major, minor, patch) \ 103780d59932Sopenharmony_ci ((((major) & CL_VERSION_MAJOR_MASK_KHR) << (CL_VERSION_MINOR_BITS_KHR + CL_VERSION_PATCH_BITS_KHR)) | \ 103880d59932Sopenharmony_ci (((minor) & CL_VERSION_MINOR_MASK_KHR) << CL_VERSION_PATCH_BITS_KHR) | \ 103980d59932Sopenharmony_ci ((patch) & CL_VERSION_PATCH_MASK_KHR)) 104080d59932Sopenharmony_ci 104180d59932Sopenharmony_citypedef cl_uint cl_version_khr; 104280d59932Sopenharmony_ci 104380d59932Sopenharmony_ci#define CL_NAME_VERSION_MAX_NAME_SIZE_KHR 64 104480d59932Sopenharmony_ci 104580d59932Sopenharmony_citypedef struct _cl_name_version_khr 104680d59932Sopenharmony_ci{ 104780d59932Sopenharmony_ci cl_version_khr version; 104880d59932Sopenharmony_ci char name[CL_NAME_VERSION_MAX_NAME_SIZE_KHR]; 104980d59932Sopenharmony_ci} cl_name_version_khr; 105080d59932Sopenharmony_ci 105180d59932Sopenharmony_ci/* cl_platform_info */ 105280d59932Sopenharmony_ci#define CL_PLATFORM_NUMERIC_VERSION_KHR 0x0906 105380d59932Sopenharmony_ci#define CL_PLATFORM_EXTENSIONS_WITH_VERSION_KHR 0x0907 105480d59932Sopenharmony_ci 105580d59932Sopenharmony_ci/* cl_device_info */ 105680d59932Sopenharmony_ci#define CL_DEVICE_NUMERIC_VERSION_KHR 0x105E 105780d59932Sopenharmony_ci#define CL_DEVICE_OPENCL_C_NUMERIC_VERSION_KHR 0x105F 105880d59932Sopenharmony_ci#define CL_DEVICE_EXTENSIONS_WITH_VERSION_KHR 0x1060 105980d59932Sopenharmony_ci#define CL_DEVICE_ILS_WITH_VERSION_KHR 0x1061 106080d59932Sopenharmony_ci#define CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION_KHR 0x1062 106180d59932Sopenharmony_ci 106280d59932Sopenharmony_ci 106380d59932Sopenharmony_ci/********************************* 106480d59932Sopenharmony_ci* cl_khr_device_uuid extension 106580d59932Sopenharmony_ci*********************************/ 106680d59932Sopenharmony_ci#define cl_khr_device_uuid 1 106780d59932Sopenharmony_ci 106880d59932Sopenharmony_ci#define CL_UUID_SIZE_KHR 16 106980d59932Sopenharmony_ci#define CL_LUID_SIZE_KHR 8 107080d59932Sopenharmony_ci 107180d59932Sopenharmony_ci#define CL_DEVICE_UUID_KHR 0x106A 107280d59932Sopenharmony_ci#define CL_DRIVER_UUID_KHR 0x106B 107380d59932Sopenharmony_ci#define CL_DEVICE_LUID_VALID_KHR 0x106C 107480d59932Sopenharmony_ci#define CL_DEVICE_LUID_KHR 0x106D 107580d59932Sopenharmony_ci#define CL_DEVICE_NODE_MASK_KHR 0x106E 107680d59932Sopenharmony_ci 107780d59932Sopenharmony_ci 107880d59932Sopenharmony_ci/*************************************************************** 107980d59932Sopenharmony_ci* cl_khr_pci_bus_info 108080d59932Sopenharmony_ci***************************************************************/ 108180d59932Sopenharmony_ci#define cl_khr_pci_bus_info 1 108280d59932Sopenharmony_ci 108380d59932Sopenharmony_citypedef struct _cl_device_pci_bus_info_khr { 108480d59932Sopenharmony_ci cl_uint pci_domain; 108580d59932Sopenharmony_ci cl_uint pci_bus; 108680d59932Sopenharmony_ci cl_uint pci_device; 108780d59932Sopenharmony_ci cl_uint pci_function; 108880d59932Sopenharmony_ci} cl_device_pci_bus_info_khr; 108980d59932Sopenharmony_ci 109080d59932Sopenharmony_ci/* cl_device_info */ 109180d59932Sopenharmony_ci#define CL_DEVICE_PCI_BUS_INFO_KHR 0x410F 109280d59932Sopenharmony_ci 109380d59932Sopenharmony_ci 109480d59932Sopenharmony_ci/*************************************************************** 109580d59932Sopenharmony_ci* cl_khr_suggested_local_work_size 109680d59932Sopenharmony_ci***************************************************************/ 109780d59932Sopenharmony_ci#define cl_khr_suggested_local_work_size 1 109880d59932Sopenharmony_ci 109980d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 110080d59932Sopenharmony_ciclGetKernelSuggestedLocalWorkSizeKHR( 110180d59932Sopenharmony_ci cl_command_queue command_queue, 110280d59932Sopenharmony_ci cl_kernel kernel, 110380d59932Sopenharmony_ci cl_uint work_dim, 110480d59932Sopenharmony_ci const size_t* global_work_offset, 110580d59932Sopenharmony_ci const size_t* global_work_size, 110680d59932Sopenharmony_ci size_t* suggested_local_work_size) CL_API_SUFFIX__VERSION_3_0; 110780d59932Sopenharmony_ci 110880d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 110980d59932Sopenharmony_ciclGetKernelSuggestedLocalWorkSizeKHR_fn)( 111080d59932Sopenharmony_ci cl_command_queue command_queue, 111180d59932Sopenharmony_ci cl_kernel kernel, 111280d59932Sopenharmony_ci cl_uint work_dim, 111380d59932Sopenharmony_ci const size_t* global_work_offset, 111480d59932Sopenharmony_ci const size_t* global_work_size, 111580d59932Sopenharmony_ci size_t* suggested_local_work_size) CL_API_SUFFIX__VERSION_3_0; 111680d59932Sopenharmony_ci 111780d59932Sopenharmony_ci 111880d59932Sopenharmony_ci/*************************************************************** 111980d59932Sopenharmony_ci* cl_khr_integer_dot_product 112080d59932Sopenharmony_ci***************************************************************/ 112180d59932Sopenharmony_ci#define cl_khr_integer_dot_product 1 112280d59932Sopenharmony_ci 112380d59932Sopenharmony_citypedef cl_bitfield cl_device_integer_dot_product_capabilities_khr; 112480d59932Sopenharmony_ci 112580d59932Sopenharmony_ci/* cl_device_integer_dot_product_capabilities_khr */ 112680d59932Sopenharmony_ci#define CL_DEVICE_INTEGER_DOT_PRODUCT_INPUT_4x8BIT_PACKED_KHR (1 << 0) 112780d59932Sopenharmony_ci#define CL_DEVICE_INTEGER_DOT_PRODUCT_INPUT_4x8BIT_KHR (1 << 1) 112880d59932Sopenharmony_ci 112980d59932Sopenharmony_citypedef struct _cl_device_integer_dot_product_acceleration_properties_khr { 113080d59932Sopenharmony_ci cl_bool signed_accelerated; 113180d59932Sopenharmony_ci cl_bool unsigned_accelerated; 113280d59932Sopenharmony_ci cl_bool mixed_signedness_accelerated; 113380d59932Sopenharmony_ci cl_bool accumulating_saturating_signed_accelerated; 113480d59932Sopenharmony_ci cl_bool accumulating_saturating_unsigned_accelerated; 113580d59932Sopenharmony_ci cl_bool accumulating_saturating_mixed_signedness_accelerated; 113680d59932Sopenharmony_ci} cl_device_integer_dot_product_acceleration_properties_khr; 113780d59932Sopenharmony_ci 113880d59932Sopenharmony_ci/* cl_device_info */ 113980d59932Sopenharmony_ci#define CL_DEVICE_INTEGER_DOT_PRODUCT_CAPABILITIES_KHR 0x1073 114080d59932Sopenharmony_ci#define CL_DEVICE_INTEGER_DOT_PRODUCT_ACCELERATION_PROPERTIES_8BIT_KHR 0x1074 114180d59932Sopenharmony_ci#define CL_DEVICE_INTEGER_DOT_PRODUCT_ACCELERATION_PROPERTIES_4x8BIT_PACKED_KHR 0x1075 114280d59932Sopenharmony_ci 114380d59932Sopenharmony_ci 114480d59932Sopenharmony_ci/*************************************************************** 114580d59932Sopenharmony_ci* cl_khr_external_memory 114680d59932Sopenharmony_ci***************************************************************/ 114780d59932Sopenharmony_ci#define cl_khr_external_memory 1 114880d59932Sopenharmony_ci 114980d59932Sopenharmony_citypedef cl_uint cl_external_memory_handle_type_khr; 115080d59932Sopenharmony_ci 115180d59932Sopenharmony_ci/* cl_platform_info */ 115280d59932Sopenharmony_ci#define CL_PLATFORM_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR 0x2044 115380d59932Sopenharmony_ci 115480d59932Sopenharmony_ci/* cl_device_info */ 115580d59932Sopenharmony_ci#define CL_DEVICE_EXTERNAL_MEMORY_IMPORT_HANDLE_TYPES_KHR 0x204F 115680d59932Sopenharmony_ci 115780d59932Sopenharmony_ci/* cl_mem_properties */ 115880d59932Sopenharmony_ci#define CL_DEVICE_HANDLE_LIST_KHR 0x2051 115980d59932Sopenharmony_ci#define CL_DEVICE_HANDLE_LIST_END_KHR 0 116080d59932Sopenharmony_ci 116180d59932Sopenharmony_ci/* cl_command_type */ 116280d59932Sopenharmony_ci#define CL_COMMAND_ACQUIRE_EXTERNAL_MEM_OBJECTS_KHR 0x2047 116380d59932Sopenharmony_ci#define CL_COMMAND_RELEASE_EXTERNAL_MEM_OBJECTS_KHR 0x2048 116480d59932Sopenharmony_ci 116580d59932Sopenharmony_ci 116680d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 116780d59932Sopenharmony_ciclEnqueueAcquireExternalMemObjectsKHR_fn)( 116880d59932Sopenharmony_ci cl_command_queue command_queue, 116980d59932Sopenharmony_ci cl_uint num_mem_objects, 117080d59932Sopenharmony_ci const cl_mem* mem_objects, 117180d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 117280d59932Sopenharmony_ci const cl_event* event_wait_list, 117380d59932Sopenharmony_ci cl_event* event) CL_API_SUFFIX__VERSION_3_0; 117480d59932Sopenharmony_ci 117580d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 117680d59932Sopenharmony_ciclEnqueueReleaseExternalMemObjectsKHR_fn)( 117780d59932Sopenharmony_ci cl_command_queue command_queue, 117880d59932Sopenharmony_ci cl_uint num_mem_objects, 117980d59932Sopenharmony_ci const cl_mem* mem_objects, 118080d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 118180d59932Sopenharmony_ci const cl_event* event_wait_list, 118280d59932Sopenharmony_ci cl_event* event) CL_API_SUFFIX__VERSION_3_0; 118380d59932Sopenharmony_ci 118480d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 118580d59932Sopenharmony_ciclEnqueueAcquireExternalMemObjectsKHR( 118680d59932Sopenharmony_ci cl_command_queue command_queue, 118780d59932Sopenharmony_ci cl_uint num_mem_objects, 118880d59932Sopenharmony_ci const cl_mem* mem_objects, 118980d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 119080d59932Sopenharmony_ci const cl_event* event_wait_list, 119180d59932Sopenharmony_ci cl_event* event) CL_API_SUFFIX__VERSION_3_0; 119280d59932Sopenharmony_ci 119380d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 119480d59932Sopenharmony_ciclEnqueueReleaseExternalMemObjectsKHR( 119580d59932Sopenharmony_ci cl_command_queue command_queue, 119680d59932Sopenharmony_ci cl_uint num_mem_objects, 119780d59932Sopenharmony_ci const cl_mem* mem_objects, 119880d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 119980d59932Sopenharmony_ci const cl_event* event_wait_list, 120080d59932Sopenharmony_ci cl_event* event) CL_API_SUFFIX__VERSION_3_0; 120180d59932Sopenharmony_ci 120280d59932Sopenharmony_ci/*************************************************************** 120380d59932Sopenharmony_ci* cl_khr_external_memory_dma_buf 120480d59932Sopenharmony_ci***************************************************************/ 120580d59932Sopenharmony_ci#define cl_khr_external_memory_dma_buf 1 120680d59932Sopenharmony_ci 120780d59932Sopenharmony_ci/* cl_external_memory_handle_type_khr */ 120880d59932Sopenharmony_ci#define CL_EXTERNAL_MEMORY_HANDLE_DMA_BUF_KHR 0x2067 120980d59932Sopenharmony_ci 121080d59932Sopenharmony_ci/*************************************************************** 121180d59932Sopenharmony_ci* cl_khr_external_memory_dx 121280d59932Sopenharmony_ci***************************************************************/ 121380d59932Sopenharmony_ci#define cl_khr_external_memory_dx 1 121480d59932Sopenharmony_ci 121580d59932Sopenharmony_ci/* cl_external_memory_handle_type_khr */ 121680d59932Sopenharmony_ci#define CL_EXTERNAL_MEMORY_HANDLE_D3D11_TEXTURE_KHR 0x2063 121780d59932Sopenharmony_ci#define CL_EXTERNAL_MEMORY_HANDLE_D3D11_TEXTURE_KMT_KHR 0x2064 121880d59932Sopenharmony_ci#define CL_EXTERNAL_MEMORY_HANDLE_D3D12_HEAP_KHR 0x2065 121980d59932Sopenharmony_ci#define CL_EXTERNAL_MEMORY_HANDLE_D3D12_RESOURCE_KHR 0x2066 122080d59932Sopenharmony_ci 122180d59932Sopenharmony_ci/*************************************************************** 122280d59932Sopenharmony_ci* cl_khr_external_memory_opaque_fd 122380d59932Sopenharmony_ci***************************************************************/ 122480d59932Sopenharmony_ci#define cl_khr_external_memory_opaque_fd 1 122580d59932Sopenharmony_ci 122680d59932Sopenharmony_ci/* cl_external_memory_handle_type_khr */ 122780d59932Sopenharmony_ci#define CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_FD_KHR 0x2060 122880d59932Sopenharmony_ci 122980d59932Sopenharmony_ci/*************************************************************** 123080d59932Sopenharmony_ci* cl_khr_external_memory_win32 123180d59932Sopenharmony_ci***************************************************************/ 123280d59932Sopenharmony_ci#define cl_khr_external_memory_win32 1 123380d59932Sopenharmony_ci 123480d59932Sopenharmony_ci/* cl_external_memory_handle_type_khr */ 123580d59932Sopenharmony_ci#define CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KHR 0x2061 123680d59932Sopenharmony_ci#define CL_EXTERNAL_MEMORY_HANDLE_OPAQUE_WIN32_KMT_KHR 0x2062 123780d59932Sopenharmony_ci 123880d59932Sopenharmony_ci/*************************************************************** 123980d59932Sopenharmony_ci* cl_khr_external_semaphore 124080d59932Sopenharmony_ci***************************************************************/ 124180d59932Sopenharmony_ci#define cl_khr_external_semaphore 1 124280d59932Sopenharmony_ci 124380d59932Sopenharmony_citypedef struct _cl_semaphore_khr * cl_semaphore_khr; 124480d59932Sopenharmony_citypedef cl_uint cl_external_semaphore_handle_type_khr; 124580d59932Sopenharmony_ci 124680d59932Sopenharmony_ci/* cl_platform_info */ 124780d59932Sopenharmony_ci#define CL_PLATFORM_SEMAPHORE_IMPORT_HANDLE_TYPES_KHR 0x2037 124880d59932Sopenharmony_ci#define CL_PLATFORM_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR 0x2038 124980d59932Sopenharmony_ci 125080d59932Sopenharmony_ci/* cl_device_info */ 125180d59932Sopenharmony_ci#define CL_DEVICE_SEMAPHORE_IMPORT_HANDLE_TYPES_KHR 0x204D 125280d59932Sopenharmony_ci#define CL_DEVICE_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR 0x204E 125380d59932Sopenharmony_ci 125480d59932Sopenharmony_ci/* cl_semaphore_properties_khr */ 125580d59932Sopenharmony_ci#define CL_SEMAPHORE_EXPORT_HANDLE_TYPES_KHR 0x203F 125680d59932Sopenharmony_ci#define CL_SEMAPHORE_EXPORT_HANDLE_TYPES_LIST_END_KHR 0 125780d59932Sopenharmony_ci 125880d59932Sopenharmony_ci 125980d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 126080d59932Sopenharmony_ciclGetSemaphoreHandleForTypeKHR_fn)( 126180d59932Sopenharmony_ci cl_semaphore_khr sema_object, 126280d59932Sopenharmony_ci cl_device_id device, 126380d59932Sopenharmony_ci cl_external_semaphore_handle_type_khr handle_type, 126480d59932Sopenharmony_ci size_t handle_size, 126580d59932Sopenharmony_ci void* handle_ptr, 126680d59932Sopenharmony_ci size_t* handle_size_ret) CL_API_SUFFIX__VERSION_1_2; 126780d59932Sopenharmony_ci 126880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 126980d59932Sopenharmony_ciclGetSemaphoreHandleForTypeKHR( 127080d59932Sopenharmony_ci cl_semaphore_khr sema_object, 127180d59932Sopenharmony_ci cl_device_id device, 127280d59932Sopenharmony_ci cl_external_semaphore_handle_type_khr handle_type, 127380d59932Sopenharmony_ci size_t handle_size, 127480d59932Sopenharmony_ci void* handle_ptr, 127580d59932Sopenharmony_ci size_t* handle_size_ret) CL_API_SUFFIX__VERSION_1_2; 127680d59932Sopenharmony_ci 127780d59932Sopenharmony_ci/*************************************************************** 127880d59932Sopenharmony_ci* cl_khr_external_semaphore_dx_fence 127980d59932Sopenharmony_ci***************************************************************/ 128080d59932Sopenharmony_ci#define cl_khr_external_semaphore_dx_fence 1 128180d59932Sopenharmony_ci 128280d59932Sopenharmony_ci/* cl_external_semaphore_handle_type_khr */ 128380d59932Sopenharmony_ci#define CL_SEMAPHORE_HANDLE_D3D12_FENCE_KHR 0x2059 128480d59932Sopenharmony_ci 128580d59932Sopenharmony_ci/*************************************************************** 128680d59932Sopenharmony_ci* cl_khr_external_semaphore_opaque_fd 128780d59932Sopenharmony_ci***************************************************************/ 128880d59932Sopenharmony_ci#define cl_khr_external_semaphore_opaque_fd 1 128980d59932Sopenharmony_ci 129080d59932Sopenharmony_ci/* cl_external_semaphore_handle_type_khr */ 129180d59932Sopenharmony_ci#define CL_SEMAPHORE_HANDLE_OPAQUE_FD_KHR 0x2055 129280d59932Sopenharmony_ci 129380d59932Sopenharmony_ci/*************************************************************** 129480d59932Sopenharmony_ci* cl_khr_external_semaphore_sync_fd 129580d59932Sopenharmony_ci***************************************************************/ 129680d59932Sopenharmony_ci#define cl_khr_external_semaphore_sync_fd 1 129780d59932Sopenharmony_ci 129880d59932Sopenharmony_ci/* cl_external_semaphore_handle_type_khr */ 129980d59932Sopenharmony_ci#define CL_SEMAPHORE_HANDLE_SYNC_FD_KHR 0x2058 130080d59932Sopenharmony_ci 130180d59932Sopenharmony_ci/*************************************************************** 130280d59932Sopenharmony_ci* cl_khr_external_semaphore_win32 130380d59932Sopenharmony_ci***************************************************************/ 130480d59932Sopenharmony_ci#define cl_khr_external_semaphore_win32 1 130580d59932Sopenharmony_ci 130680d59932Sopenharmony_ci/* cl_external_semaphore_handle_type_khr */ 130780d59932Sopenharmony_ci#define CL_SEMAPHORE_HANDLE_OPAQUE_WIN32_KHR 0x2056 130880d59932Sopenharmony_ci#define CL_SEMAPHORE_HANDLE_OPAQUE_WIN32_KMT_KHR 0x2057 130980d59932Sopenharmony_ci 131080d59932Sopenharmony_ci/*************************************************************** 131180d59932Sopenharmony_ci* cl_khr_semaphore 131280d59932Sopenharmony_ci***************************************************************/ 131380d59932Sopenharmony_ci#define cl_khr_semaphore 1 131480d59932Sopenharmony_ci 131580d59932Sopenharmony_ci/* type cl_semaphore_khr */ 131680d59932Sopenharmony_citypedef cl_properties cl_semaphore_properties_khr; 131780d59932Sopenharmony_citypedef cl_uint cl_semaphore_info_khr; 131880d59932Sopenharmony_citypedef cl_uint cl_semaphore_type_khr; 131980d59932Sopenharmony_citypedef cl_ulong cl_semaphore_payload_khr; 132080d59932Sopenharmony_ci 132180d59932Sopenharmony_ci/* cl_semaphore_type */ 132280d59932Sopenharmony_ci#define CL_SEMAPHORE_TYPE_BINARY_KHR 1 132380d59932Sopenharmony_ci 132480d59932Sopenharmony_ci/* cl_platform_info */ 132580d59932Sopenharmony_ci#define CL_PLATFORM_SEMAPHORE_TYPES_KHR 0x2036 132680d59932Sopenharmony_ci 132780d59932Sopenharmony_ci/* cl_device_info */ 132880d59932Sopenharmony_ci#define CL_DEVICE_SEMAPHORE_TYPES_KHR 0x204C 132980d59932Sopenharmony_ci 133080d59932Sopenharmony_ci/* cl_semaphore_info_khr */ 133180d59932Sopenharmony_ci#define CL_SEMAPHORE_CONTEXT_KHR 0x2039 133280d59932Sopenharmony_ci#define CL_SEMAPHORE_REFERENCE_COUNT_KHR 0x203A 133380d59932Sopenharmony_ci#define CL_SEMAPHORE_PROPERTIES_KHR 0x203B 133480d59932Sopenharmony_ci#define CL_SEMAPHORE_PAYLOAD_KHR 0x203C 133580d59932Sopenharmony_ci 133680d59932Sopenharmony_ci/* cl_semaphore_info_khr or cl_semaphore_properties_khr */ 133780d59932Sopenharmony_ci#define CL_SEMAPHORE_TYPE_KHR 0x203D 133880d59932Sopenharmony_ci/* enum CL_DEVICE_HANDLE_LIST_KHR */ 133980d59932Sopenharmony_ci/* enum CL_DEVICE_HANDLE_LIST_END_KHR */ 134080d59932Sopenharmony_ci 134180d59932Sopenharmony_ci/* cl_command_type */ 134280d59932Sopenharmony_ci#define CL_COMMAND_SEMAPHORE_WAIT_KHR 0x2042 134380d59932Sopenharmony_ci#define CL_COMMAND_SEMAPHORE_SIGNAL_KHR 0x2043 134480d59932Sopenharmony_ci 134580d59932Sopenharmony_ci/* Error codes */ 134680d59932Sopenharmony_ci#define CL_INVALID_SEMAPHORE_KHR -1142 134780d59932Sopenharmony_ci 134880d59932Sopenharmony_ci 134980d59932Sopenharmony_citypedef cl_semaphore_khr (CL_API_CALL * 135080d59932Sopenharmony_ciclCreateSemaphoreWithPropertiesKHR_fn)( 135180d59932Sopenharmony_ci cl_context context, 135280d59932Sopenharmony_ci const cl_semaphore_properties_khr* sema_props, 135380d59932Sopenharmony_ci cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; 135480d59932Sopenharmony_ci 135580d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 135680d59932Sopenharmony_ciclEnqueueWaitSemaphoresKHR_fn)( 135780d59932Sopenharmony_ci cl_command_queue command_queue, 135880d59932Sopenharmony_ci cl_uint num_sema_objects, 135980d59932Sopenharmony_ci const cl_semaphore_khr* sema_objects, 136080d59932Sopenharmony_ci const cl_semaphore_payload_khr* sema_payload_list, 136180d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 136280d59932Sopenharmony_ci const cl_event* event_wait_list, 136380d59932Sopenharmony_ci cl_event* event) CL_API_SUFFIX__VERSION_1_2; 136480d59932Sopenharmony_ci 136580d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 136680d59932Sopenharmony_ciclEnqueueSignalSemaphoresKHR_fn)( 136780d59932Sopenharmony_ci cl_command_queue command_queue, 136880d59932Sopenharmony_ci cl_uint num_sema_objects, 136980d59932Sopenharmony_ci const cl_semaphore_khr* sema_objects, 137080d59932Sopenharmony_ci const cl_semaphore_payload_khr* sema_payload_list, 137180d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 137280d59932Sopenharmony_ci const cl_event* event_wait_list, 137380d59932Sopenharmony_ci cl_event* event) CL_API_SUFFIX__VERSION_1_2; 137480d59932Sopenharmony_ci 137580d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 137680d59932Sopenharmony_ciclGetSemaphoreInfoKHR_fn)( 137780d59932Sopenharmony_ci cl_semaphore_khr sema_object, 137880d59932Sopenharmony_ci cl_semaphore_info_khr param_name, 137980d59932Sopenharmony_ci size_t param_value_size, 138080d59932Sopenharmony_ci void* param_value, 138180d59932Sopenharmony_ci size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_2; 138280d59932Sopenharmony_ci 138380d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 138480d59932Sopenharmony_ciclReleaseSemaphoreKHR_fn)( 138580d59932Sopenharmony_ci cl_semaphore_khr sema_object) CL_API_SUFFIX__VERSION_1_2; 138680d59932Sopenharmony_ci 138780d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 138880d59932Sopenharmony_ciclRetainSemaphoreKHR_fn)( 138980d59932Sopenharmony_ci cl_semaphore_khr sema_object) CL_API_SUFFIX__VERSION_1_2; 139080d59932Sopenharmony_ci 139180d59932Sopenharmony_ciextern CL_API_ENTRY cl_semaphore_khr CL_API_CALL 139280d59932Sopenharmony_ciclCreateSemaphoreWithPropertiesKHR( 139380d59932Sopenharmony_ci cl_context context, 139480d59932Sopenharmony_ci const cl_semaphore_properties_khr* sema_props, 139580d59932Sopenharmony_ci cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; 139680d59932Sopenharmony_ci 139780d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 139880d59932Sopenharmony_ciclEnqueueWaitSemaphoresKHR( 139980d59932Sopenharmony_ci cl_command_queue command_queue, 140080d59932Sopenharmony_ci cl_uint num_sema_objects, 140180d59932Sopenharmony_ci const cl_semaphore_khr* sema_objects, 140280d59932Sopenharmony_ci const cl_semaphore_payload_khr* sema_payload_list, 140380d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 140480d59932Sopenharmony_ci const cl_event* event_wait_list, 140580d59932Sopenharmony_ci cl_event* event) CL_API_SUFFIX__VERSION_1_2; 140680d59932Sopenharmony_ci 140780d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 140880d59932Sopenharmony_ciclEnqueueSignalSemaphoresKHR( 140980d59932Sopenharmony_ci cl_command_queue command_queue, 141080d59932Sopenharmony_ci cl_uint num_sema_objects, 141180d59932Sopenharmony_ci const cl_semaphore_khr* sema_objects, 141280d59932Sopenharmony_ci const cl_semaphore_payload_khr* sema_payload_list, 141380d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 141480d59932Sopenharmony_ci const cl_event* event_wait_list, 141580d59932Sopenharmony_ci cl_event* event) CL_API_SUFFIX__VERSION_1_2; 141680d59932Sopenharmony_ci 141780d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 141880d59932Sopenharmony_ciclGetSemaphoreInfoKHR( 141980d59932Sopenharmony_ci cl_semaphore_khr sema_object, 142080d59932Sopenharmony_ci cl_semaphore_info_khr param_name, 142180d59932Sopenharmony_ci size_t param_value_size, 142280d59932Sopenharmony_ci void* param_value, 142380d59932Sopenharmony_ci size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_2; 142480d59932Sopenharmony_ci 142580d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 142680d59932Sopenharmony_ciclReleaseSemaphoreKHR( 142780d59932Sopenharmony_ci cl_semaphore_khr sema_object) CL_API_SUFFIX__VERSION_1_2; 142880d59932Sopenharmony_ci 142980d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 143080d59932Sopenharmony_ciclRetainSemaphoreKHR( 143180d59932Sopenharmony_ci cl_semaphore_khr sema_object) CL_API_SUFFIX__VERSION_1_2; 143280d59932Sopenharmony_ci 143380d59932Sopenharmony_ci/********************************** 143480d59932Sopenharmony_ci * cl_arm_import_memory extension * 143580d59932Sopenharmony_ci **********************************/ 143680d59932Sopenharmony_ci#define cl_arm_import_memory 1 143780d59932Sopenharmony_ci 143880d59932Sopenharmony_citypedef intptr_t cl_import_properties_arm; 143980d59932Sopenharmony_ci 144080d59932Sopenharmony_ci/* Default and valid proporties name for cl_arm_import_memory */ 144180d59932Sopenharmony_ci#define CL_IMPORT_TYPE_ARM 0x40B2 144280d59932Sopenharmony_ci 144380d59932Sopenharmony_ci/* Host process memory type default value for CL_IMPORT_TYPE_ARM property */ 144480d59932Sopenharmony_ci#define CL_IMPORT_TYPE_HOST_ARM 0x40B3 144580d59932Sopenharmony_ci 144680d59932Sopenharmony_ci/* DMA BUF memory type value for CL_IMPORT_TYPE_ARM property */ 144780d59932Sopenharmony_ci#define CL_IMPORT_TYPE_DMA_BUF_ARM 0x40B4 144880d59932Sopenharmony_ci 144980d59932Sopenharmony_ci/* Protected memory property */ 145080d59932Sopenharmony_ci#define CL_IMPORT_TYPE_PROTECTED_ARM 0x40B5 145180d59932Sopenharmony_ci 145280d59932Sopenharmony_ci/* Android hardware buffer type value for CL_IMPORT_TYPE_ARM property */ 145380d59932Sopenharmony_ci#define CL_IMPORT_TYPE_ANDROID_HARDWARE_BUFFER_ARM 0x41E2 145480d59932Sopenharmony_ci 145580d59932Sopenharmony_ci/* Data consistency with host property */ 145680d59932Sopenharmony_ci#define CL_IMPORT_DMA_BUF_DATA_CONSISTENCY_WITH_HOST_ARM 0x41E3 145780d59932Sopenharmony_ci 145880d59932Sopenharmony_ci/* Index of plane in a multiplanar hardware buffer */ 145980d59932Sopenharmony_ci#define CL_IMPORT_ANDROID_HARDWARE_BUFFER_PLANE_INDEX_ARM 0x41EF 146080d59932Sopenharmony_ci 146180d59932Sopenharmony_ci/* Index of layer in a multilayer hardware buffer */ 146280d59932Sopenharmony_ci#define CL_IMPORT_ANDROID_HARDWARE_BUFFER_LAYER_INDEX_ARM 0x41F0 146380d59932Sopenharmony_ci 146480d59932Sopenharmony_ci/* Import memory size value to indicate a size for the whole buffer */ 146580d59932Sopenharmony_ci#define CL_IMPORT_MEMORY_WHOLE_ALLOCATION_ARM SIZE_MAX 146680d59932Sopenharmony_ci 146780d59932Sopenharmony_ci/* This extension adds a new function that allows for direct memory import into 146880d59932Sopenharmony_ci * OpenCL via the clImportMemoryARM function. 146980d59932Sopenharmony_ci * 147080d59932Sopenharmony_ci * Memory imported through this interface will be mapped into the device's page 147180d59932Sopenharmony_ci * tables directly, providing zero copy access. It will never fall back to copy 147280d59932Sopenharmony_ci * operations and aliased buffers. 147380d59932Sopenharmony_ci * 147480d59932Sopenharmony_ci * Types of memory supported for import are specified as additional extension 147580d59932Sopenharmony_ci * strings. 147680d59932Sopenharmony_ci * 147780d59932Sopenharmony_ci * This extension produces cl_mem allocations which are compatible with all other 147880d59932Sopenharmony_ci * users of cl_mem in the standard API. 147980d59932Sopenharmony_ci * 148080d59932Sopenharmony_ci * This extension maps pages with the same properties as the normal buffer creation 148180d59932Sopenharmony_ci * function clCreateBuffer. 148280d59932Sopenharmony_ci */ 148380d59932Sopenharmony_ciextern CL_API_ENTRY cl_mem CL_API_CALL 148480d59932Sopenharmony_ciclImportMemoryARM( cl_context context, 148580d59932Sopenharmony_ci cl_mem_flags flags, 148680d59932Sopenharmony_ci const cl_import_properties_arm *properties, 148780d59932Sopenharmony_ci void *memory, 148880d59932Sopenharmony_ci size_t size, 148980d59932Sopenharmony_ci cl_int *errcode_ret) CL_API_SUFFIX__VERSION_1_0; 149080d59932Sopenharmony_ci 149180d59932Sopenharmony_ci 149280d59932Sopenharmony_ci/****************************************** 149380d59932Sopenharmony_ci * cl_arm_shared_virtual_memory extension * 149480d59932Sopenharmony_ci ******************************************/ 149580d59932Sopenharmony_ci#define cl_arm_shared_virtual_memory 1 149680d59932Sopenharmony_ci 149780d59932Sopenharmony_ci/* Used by clGetDeviceInfo */ 149880d59932Sopenharmony_ci#define CL_DEVICE_SVM_CAPABILITIES_ARM 0x40B6 149980d59932Sopenharmony_ci 150080d59932Sopenharmony_ci/* Used by clGetMemObjectInfo */ 150180d59932Sopenharmony_ci#define CL_MEM_USES_SVM_POINTER_ARM 0x40B7 150280d59932Sopenharmony_ci 150380d59932Sopenharmony_ci/* Used by clSetKernelExecInfoARM: */ 150480d59932Sopenharmony_ci#define CL_KERNEL_EXEC_INFO_SVM_PTRS_ARM 0x40B8 150580d59932Sopenharmony_ci#define CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM_ARM 0x40B9 150680d59932Sopenharmony_ci 150780d59932Sopenharmony_ci/* To be used by clGetEventInfo: */ 150880d59932Sopenharmony_ci#define CL_COMMAND_SVM_FREE_ARM 0x40BA 150980d59932Sopenharmony_ci#define CL_COMMAND_SVM_MEMCPY_ARM 0x40BB 151080d59932Sopenharmony_ci#define CL_COMMAND_SVM_MEMFILL_ARM 0x40BC 151180d59932Sopenharmony_ci#define CL_COMMAND_SVM_MAP_ARM 0x40BD 151280d59932Sopenharmony_ci#define CL_COMMAND_SVM_UNMAP_ARM 0x40BE 151380d59932Sopenharmony_ci 151480d59932Sopenharmony_ci/* Flag values returned by clGetDeviceInfo with CL_DEVICE_SVM_CAPABILITIES_ARM as the param_name. */ 151580d59932Sopenharmony_ci#define CL_DEVICE_SVM_COARSE_GRAIN_BUFFER_ARM (1 << 0) 151680d59932Sopenharmony_ci#define CL_DEVICE_SVM_FINE_GRAIN_BUFFER_ARM (1 << 1) 151780d59932Sopenharmony_ci#define CL_DEVICE_SVM_FINE_GRAIN_SYSTEM_ARM (1 << 2) 151880d59932Sopenharmony_ci#define CL_DEVICE_SVM_ATOMICS_ARM (1 << 3) 151980d59932Sopenharmony_ci 152080d59932Sopenharmony_ci/* Flag values used by clSVMAllocARM: */ 152180d59932Sopenharmony_ci#define CL_MEM_SVM_FINE_GRAIN_BUFFER_ARM (1 << 10) 152280d59932Sopenharmony_ci#define CL_MEM_SVM_ATOMICS_ARM (1 << 11) 152380d59932Sopenharmony_ci 152480d59932Sopenharmony_citypedef cl_bitfield cl_svm_mem_flags_arm; 152580d59932Sopenharmony_citypedef cl_uint cl_kernel_exec_info_arm; 152680d59932Sopenharmony_citypedef cl_bitfield cl_device_svm_capabilities_arm; 152780d59932Sopenharmony_ci 152880d59932Sopenharmony_ciextern CL_API_ENTRY void * CL_API_CALL 152980d59932Sopenharmony_ciclSVMAllocARM(cl_context context, 153080d59932Sopenharmony_ci cl_svm_mem_flags_arm flags, 153180d59932Sopenharmony_ci size_t size, 153280d59932Sopenharmony_ci cl_uint alignment) CL_API_SUFFIX__VERSION_1_2; 153380d59932Sopenharmony_ci 153480d59932Sopenharmony_ciextern CL_API_ENTRY void CL_API_CALL 153580d59932Sopenharmony_ciclSVMFreeARM(cl_context context, 153680d59932Sopenharmony_ci void * svm_pointer) CL_API_SUFFIX__VERSION_1_2; 153780d59932Sopenharmony_ci 153880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 153980d59932Sopenharmony_ciclEnqueueSVMFreeARM(cl_command_queue command_queue, 154080d59932Sopenharmony_ci cl_uint num_svm_pointers, 154180d59932Sopenharmony_ci void * svm_pointers[], 154280d59932Sopenharmony_ci void (CL_CALLBACK * pfn_free_func)(cl_command_queue queue, 154380d59932Sopenharmony_ci cl_uint num_svm_pointers, 154480d59932Sopenharmony_ci void * svm_pointers[], 154580d59932Sopenharmony_ci void * user_data), 154680d59932Sopenharmony_ci void * user_data, 154780d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 154880d59932Sopenharmony_ci const cl_event * event_wait_list, 154980d59932Sopenharmony_ci cl_event * event) CL_API_SUFFIX__VERSION_1_2; 155080d59932Sopenharmony_ci 155180d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 155280d59932Sopenharmony_ciclEnqueueSVMMemcpyARM(cl_command_queue command_queue, 155380d59932Sopenharmony_ci cl_bool blocking_copy, 155480d59932Sopenharmony_ci void * dst_ptr, 155580d59932Sopenharmony_ci const void * src_ptr, 155680d59932Sopenharmony_ci size_t size, 155780d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 155880d59932Sopenharmony_ci const cl_event * event_wait_list, 155980d59932Sopenharmony_ci cl_event * event) CL_API_SUFFIX__VERSION_1_2; 156080d59932Sopenharmony_ci 156180d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 156280d59932Sopenharmony_ciclEnqueueSVMMemFillARM(cl_command_queue command_queue, 156380d59932Sopenharmony_ci void * svm_ptr, 156480d59932Sopenharmony_ci const void * pattern, 156580d59932Sopenharmony_ci size_t pattern_size, 156680d59932Sopenharmony_ci size_t size, 156780d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 156880d59932Sopenharmony_ci const cl_event * event_wait_list, 156980d59932Sopenharmony_ci cl_event * event) CL_API_SUFFIX__VERSION_1_2; 157080d59932Sopenharmony_ci 157180d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 157280d59932Sopenharmony_ciclEnqueueSVMMapARM(cl_command_queue command_queue, 157380d59932Sopenharmony_ci cl_bool blocking_map, 157480d59932Sopenharmony_ci cl_map_flags flags, 157580d59932Sopenharmony_ci void * svm_ptr, 157680d59932Sopenharmony_ci size_t size, 157780d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 157880d59932Sopenharmony_ci const cl_event * event_wait_list, 157980d59932Sopenharmony_ci cl_event * event) CL_API_SUFFIX__VERSION_1_2; 158080d59932Sopenharmony_ci 158180d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 158280d59932Sopenharmony_ciclEnqueueSVMUnmapARM(cl_command_queue command_queue, 158380d59932Sopenharmony_ci void * svm_ptr, 158480d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 158580d59932Sopenharmony_ci const cl_event * event_wait_list, 158680d59932Sopenharmony_ci cl_event * event) CL_API_SUFFIX__VERSION_1_2; 158780d59932Sopenharmony_ci 158880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 158980d59932Sopenharmony_ciclSetKernelArgSVMPointerARM(cl_kernel kernel, 159080d59932Sopenharmony_ci cl_uint arg_index, 159180d59932Sopenharmony_ci const void * arg_value) CL_API_SUFFIX__VERSION_1_2; 159280d59932Sopenharmony_ci 159380d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 159480d59932Sopenharmony_ciclSetKernelExecInfoARM(cl_kernel kernel, 159580d59932Sopenharmony_ci cl_kernel_exec_info_arm param_name, 159680d59932Sopenharmony_ci size_t param_value_size, 159780d59932Sopenharmony_ci const void * param_value) CL_API_SUFFIX__VERSION_1_2; 159880d59932Sopenharmony_ci 159980d59932Sopenharmony_ci/******************************** 160080d59932Sopenharmony_ci * cl_arm_get_core_id extension * 160180d59932Sopenharmony_ci ********************************/ 160280d59932Sopenharmony_ci 160380d59932Sopenharmony_ci#ifdef CL_VERSION_1_2 160480d59932Sopenharmony_ci 160580d59932Sopenharmony_ci#define cl_arm_get_core_id 1 160680d59932Sopenharmony_ci 160780d59932Sopenharmony_ci/* Device info property for bitfield of cores present */ 160880d59932Sopenharmony_ci#define CL_DEVICE_COMPUTE_UNITS_BITFIELD_ARM 0x40BF 160980d59932Sopenharmony_ci 161080d59932Sopenharmony_ci#endif /* CL_VERSION_1_2 */ 161180d59932Sopenharmony_ci 161280d59932Sopenharmony_ci/********************************* 161380d59932Sopenharmony_ci* cl_arm_job_slot_selection 161480d59932Sopenharmony_ci*********************************/ 161580d59932Sopenharmony_ci 161680d59932Sopenharmony_ci#define cl_arm_job_slot_selection 1 161780d59932Sopenharmony_ci 161880d59932Sopenharmony_ci/* cl_device_info */ 161980d59932Sopenharmony_ci#define CL_DEVICE_JOB_SLOTS_ARM 0x41E0 162080d59932Sopenharmony_ci 162180d59932Sopenharmony_ci/* cl_command_queue_properties */ 162280d59932Sopenharmony_ci#define CL_QUEUE_JOB_SLOT_ARM 0x41E1 162380d59932Sopenharmony_ci 162480d59932Sopenharmony_ci/********************************* 162580d59932Sopenharmony_ci* cl_arm_scheduling_controls 162680d59932Sopenharmony_ci*********************************/ 162780d59932Sopenharmony_ci 162880d59932Sopenharmony_ci#define cl_arm_scheduling_controls 1 162980d59932Sopenharmony_ci 163080d59932Sopenharmony_citypedef cl_bitfield cl_device_scheduling_controls_capabilities_arm; 163180d59932Sopenharmony_ci 163280d59932Sopenharmony_ci/* cl_device_info */ 163380d59932Sopenharmony_ci#define CL_DEVICE_SCHEDULING_CONTROLS_CAPABILITIES_ARM 0x41E4 163480d59932Sopenharmony_ci 163580d59932Sopenharmony_ci#define CL_DEVICE_SCHEDULING_KERNEL_BATCHING_ARM (1 << 0) 163680d59932Sopenharmony_ci#define CL_DEVICE_SCHEDULING_WORKGROUP_BATCH_SIZE_ARM (1 << 1) 163780d59932Sopenharmony_ci#define CL_DEVICE_SCHEDULING_WORKGROUP_BATCH_SIZE_MODIFIER_ARM (1 << 2) 163880d59932Sopenharmony_ci#define CL_DEVICE_SCHEDULING_DEFERRED_FLUSH_ARM (1 << 3) 163980d59932Sopenharmony_ci#define CL_DEVICE_SCHEDULING_REGISTER_ALLOCATION_ARM (1 << 4) 164080d59932Sopenharmony_ci 164180d59932Sopenharmony_ci#define CL_DEVICE_SUPPORTED_REGISTER_ALLOCATIONS_ARM 0x41EB 164280d59932Sopenharmony_ci 164380d59932Sopenharmony_ci/* cl_kernel_info */ 164480d59932Sopenharmony_ci#define CL_KERNEL_EXEC_INFO_WORKGROUP_BATCH_SIZE_ARM 0x41E5 164580d59932Sopenharmony_ci#define CL_KERNEL_EXEC_INFO_WORKGROUP_BATCH_SIZE_MODIFIER_ARM 0x41E6 164680d59932Sopenharmony_ci 164780d59932Sopenharmony_ci/* cl_queue_properties */ 164880d59932Sopenharmony_ci#define CL_QUEUE_KERNEL_BATCHING_ARM 0x41E7 164980d59932Sopenharmony_ci#define CL_QUEUE_DEFERRED_FLUSH_ARM 0x41EC 165080d59932Sopenharmony_ci 165180d59932Sopenharmony_ci/************************************** 165280d59932Sopenharmony_ci* cl_arm_controlled_kernel_termination 165380d59932Sopenharmony_ci***************************************/ 165480d59932Sopenharmony_ci 165580d59932Sopenharmony_ci#define cl_arm_controlled_kernel_termination 1 165680d59932Sopenharmony_ci 165780d59932Sopenharmony_ci/* Error code to indicate kernel terminated with failure */ 165880d59932Sopenharmony_ci#define CL_COMMAND_TERMINATED_ITSELF_WITH_FAILURE_ARM -1108 165980d59932Sopenharmony_ci 166080d59932Sopenharmony_ci/* cl_device_info */ 166180d59932Sopenharmony_ci#define CL_DEVICE_CONTROLLED_TERMINATION_CAPABILITIES_ARM 0x41EE 166280d59932Sopenharmony_ci 166380d59932Sopenharmony_ci/* Bit fields for controlled termination feature query */ 166480d59932Sopenharmony_citypedef cl_bitfield cl_device_controlled_termination_capabilities_arm; 166580d59932Sopenharmony_ci 166680d59932Sopenharmony_ci#define CL_DEVICE_CONTROLLED_TERMINATION_SUCCESS_ARM (1 << 0) 166780d59932Sopenharmony_ci#define CL_DEVICE_CONTROLLED_TERMINATION_FAILURE_ARM (1 << 1) 166880d59932Sopenharmony_ci#define CL_DEVICE_CONTROLLED_TERMINATION_QUERY_ARM (1 << 2) 166980d59932Sopenharmony_ci 167080d59932Sopenharmony_ci/* cl_event_info */ 167180d59932Sopenharmony_ci#define CL_EVENT_COMMAND_TERMINATION_REASON_ARM 0x41ED 167280d59932Sopenharmony_ci 167380d59932Sopenharmony_ci/* Values returned for event termination reason query */ 167480d59932Sopenharmony_citypedef cl_uint cl_command_termination_reason_arm; 167580d59932Sopenharmony_ci 167680d59932Sopenharmony_ci#define CL_COMMAND_TERMINATION_COMPLETION_ARM 0 167780d59932Sopenharmony_ci#define CL_COMMAND_TERMINATION_CONTROLLED_SUCCESS_ARM 1 167880d59932Sopenharmony_ci#define CL_COMMAND_TERMINATION_CONTROLLED_FAILURE_ARM 2 167980d59932Sopenharmony_ci#define CL_COMMAND_TERMINATION_ERROR_ARM 3 168080d59932Sopenharmony_ci 168180d59932Sopenharmony_ci/************************************* 168280d59932Sopenharmony_ci* cl_arm_protected_memory_allocation * 168380d59932Sopenharmony_ci*************************************/ 168480d59932Sopenharmony_ci 168580d59932Sopenharmony_ci#define cl_arm_protected_memory_allocation 1 168680d59932Sopenharmony_ci 168780d59932Sopenharmony_ci#define CL_MEM_PROTECTED_ALLOC_ARM (1ULL << 36) 168880d59932Sopenharmony_ci 168980d59932Sopenharmony_ci/****************************************** 169080d59932Sopenharmony_ci* cl_intel_exec_by_local_thread extension * 169180d59932Sopenharmony_ci******************************************/ 169280d59932Sopenharmony_ci 169380d59932Sopenharmony_ci#define cl_intel_exec_by_local_thread 1 169480d59932Sopenharmony_ci 169580d59932Sopenharmony_ci#define CL_QUEUE_THREAD_LOCAL_EXEC_ENABLE_INTEL (((cl_bitfield)1) << 31) 169680d59932Sopenharmony_ci 169780d59932Sopenharmony_ci/*************************************************************** 169880d59932Sopenharmony_ci* cl_intel_device_attribute_query 169980d59932Sopenharmony_ci***************************************************************/ 170080d59932Sopenharmony_ci 170180d59932Sopenharmony_ci#define cl_intel_device_attribute_query 1 170280d59932Sopenharmony_ci 170380d59932Sopenharmony_citypedef cl_bitfield cl_device_feature_capabilities_intel; 170480d59932Sopenharmony_ci 170580d59932Sopenharmony_ci/* cl_device_feature_capabilities_intel */ 170680d59932Sopenharmony_ci#define CL_DEVICE_FEATURE_FLAG_DP4A_INTEL (1 << 0) 170780d59932Sopenharmony_ci#define CL_DEVICE_FEATURE_FLAG_DPAS_INTEL (1 << 1) 170880d59932Sopenharmony_ci 170980d59932Sopenharmony_ci/* cl_device_info */ 171080d59932Sopenharmony_ci#define CL_DEVICE_IP_VERSION_INTEL 0x4250 171180d59932Sopenharmony_ci#define CL_DEVICE_ID_INTEL 0x4251 171280d59932Sopenharmony_ci#define CL_DEVICE_NUM_SLICES_INTEL 0x4252 171380d59932Sopenharmony_ci#define CL_DEVICE_NUM_SUB_SLICES_PER_SLICE_INTEL 0x4253 171480d59932Sopenharmony_ci#define CL_DEVICE_NUM_EUS_PER_SUB_SLICE_INTEL 0x4254 171580d59932Sopenharmony_ci#define CL_DEVICE_NUM_THREADS_PER_EU_INTEL 0x4255 171680d59932Sopenharmony_ci#define CL_DEVICE_FEATURE_CAPABILITIES_INTEL 0x4256 171780d59932Sopenharmony_ci 171880d59932Sopenharmony_ci/*********************************************** 171980d59932Sopenharmony_ci* cl_intel_device_partition_by_names extension * 172080d59932Sopenharmony_ci************************************************/ 172180d59932Sopenharmony_ci 172280d59932Sopenharmony_ci#define cl_intel_device_partition_by_names 1 172380d59932Sopenharmony_ci 172480d59932Sopenharmony_ci#define CL_DEVICE_PARTITION_BY_NAMES_INTEL 0x4052 172580d59932Sopenharmony_ci#define CL_PARTITION_BY_NAMES_LIST_END_INTEL -1 172680d59932Sopenharmony_ci 172780d59932Sopenharmony_ci/************************************************ 172880d59932Sopenharmony_ci* cl_intel_accelerator extension * 172980d59932Sopenharmony_ci* cl_intel_motion_estimation extension * 173080d59932Sopenharmony_ci* cl_intel_advanced_motion_estimation extension * 173180d59932Sopenharmony_ci*************************************************/ 173280d59932Sopenharmony_ci 173380d59932Sopenharmony_ci#define cl_intel_accelerator 1 173480d59932Sopenharmony_ci#define cl_intel_motion_estimation 1 173580d59932Sopenharmony_ci#define cl_intel_advanced_motion_estimation 1 173680d59932Sopenharmony_ci 173780d59932Sopenharmony_citypedef struct _cl_accelerator_intel* cl_accelerator_intel; 173880d59932Sopenharmony_citypedef cl_uint cl_accelerator_type_intel; 173980d59932Sopenharmony_citypedef cl_uint cl_accelerator_info_intel; 174080d59932Sopenharmony_ci 174180d59932Sopenharmony_citypedef struct _cl_motion_estimation_desc_intel { 174280d59932Sopenharmony_ci cl_uint mb_block_type; 174380d59932Sopenharmony_ci cl_uint subpixel_mode; 174480d59932Sopenharmony_ci cl_uint sad_adjust_mode; 174580d59932Sopenharmony_ci cl_uint search_path_type; 174680d59932Sopenharmony_ci} cl_motion_estimation_desc_intel; 174780d59932Sopenharmony_ci 174880d59932Sopenharmony_ci/* error codes */ 174980d59932Sopenharmony_ci#define CL_INVALID_ACCELERATOR_INTEL -1094 175080d59932Sopenharmony_ci#define CL_INVALID_ACCELERATOR_TYPE_INTEL -1095 175180d59932Sopenharmony_ci#define CL_INVALID_ACCELERATOR_DESCRIPTOR_INTEL -1096 175280d59932Sopenharmony_ci#define CL_ACCELERATOR_TYPE_NOT_SUPPORTED_INTEL -1097 175380d59932Sopenharmony_ci 175480d59932Sopenharmony_ci/* cl_accelerator_type_intel */ 175580d59932Sopenharmony_ci#define CL_ACCELERATOR_TYPE_MOTION_ESTIMATION_INTEL 0x0 175680d59932Sopenharmony_ci 175780d59932Sopenharmony_ci/* cl_accelerator_info_intel */ 175880d59932Sopenharmony_ci#define CL_ACCELERATOR_DESCRIPTOR_INTEL 0x4090 175980d59932Sopenharmony_ci#define CL_ACCELERATOR_REFERENCE_COUNT_INTEL 0x4091 176080d59932Sopenharmony_ci#define CL_ACCELERATOR_CONTEXT_INTEL 0x4092 176180d59932Sopenharmony_ci#define CL_ACCELERATOR_TYPE_INTEL 0x4093 176280d59932Sopenharmony_ci 176380d59932Sopenharmony_ci/* cl_motion_detect_desc_intel flags */ 176480d59932Sopenharmony_ci#define CL_ME_MB_TYPE_16x16_INTEL 0x0 176580d59932Sopenharmony_ci#define CL_ME_MB_TYPE_8x8_INTEL 0x1 176680d59932Sopenharmony_ci#define CL_ME_MB_TYPE_4x4_INTEL 0x2 176780d59932Sopenharmony_ci 176880d59932Sopenharmony_ci#define CL_ME_SUBPIXEL_MODE_INTEGER_INTEL 0x0 176980d59932Sopenharmony_ci#define CL_ME_SUBPIXEL_MODE_HPEL_INTEL 0x1 177080d59932Sopenharmony_ci#define CL_ME_SUBPIXEL_MODE_QPEL_INTEL 0x2 177180d59932Sopenharmony_ci 177280d59932Sopenharmony_ci#define CL_ME_SAD_ADJUST_MODE_NONE_INTEL 0x0 177380d59932Sopenharmony_ci#define CL_ME_SAD_ADJUST_MODE_HAAR_INTEL 0x1 177480d59932Sopenharmony_ci 177580d59932Sopenharmony_ci#define CL_ME_SEARCH_PATH_RADIUS_2_2_INTEL 0x0 177680d59932Sopenharmony_ci#define CL_ME_SEARCH_PATH_RADIUS_4_4_INTEL 0x1 177780d59932Sopenharmony_ci#define CL_ME_SEARCH_PATH_RADIUS_16_12_INTEL 0x5 177880d59932Sopenharmony_ci 177980d59932Sopenharmony_ci#define CL_ME_SKIP_BLOCK_TYPE_16x16_INTEL 0x0 178080d59932Sopenharmony_ci#define CL_ME_CHROMA_INTRA_PREDICT_ENABLED_INTEL 0x1 178180d59932Sopenharmony_ci#define CL_ME_LUMA_INTRA_PREDICT_ENABLED_INTEL 0x2 178280d59932Sopenharmony_ci#define CL_ME_SKIP_BLOCK_TYPE_8x8_INTEL 0x4 178380d59932Sopenharmony_ci 178480d59932Sopenharmony_ci#define CL_ME_FORWARD_INPUT_MODE_INTEL 0x1 178580d59932Sopenharmony_ci#define CL_ME_BACKWARD_INPUT_MODE_INTEL 0x2 178680d59932Sopenharmony_ci#define CL_ME_BIDIRECTION_INPUT_MODE_INTEL 0x3 178780d59932Sopenharmony_ci 178880d59932Sopenharmony_ci#define CL_ME_BIDIR_WEIGHT_QUARTER_INTEL 16 178980d59932Sopenharmony_ci#define CL_ME_BIDIR_WEIGHT_THIRD_INTEL 21 179080d59932Sopenharmony_ci#define CL_ME_BIDIR_WEIGHT_HALF_INTEL 32 179180d59932Sopenharmony_ci#define CL_ME_BIDIR_WEIGHT_TWO_THIRD_INTEL 43 179280d59932Sopenharmony_ci#define CL_ME_BIDIR_WEIGHT_THREE_QUARTER_INTEL 48 179380d59932Sopenharmony_ci 179480d59932Sopenharmony_ci#define CL_ME_COST_PENALTY_NONE_INTEL 0x0 179580d59932Sopenharmony_ci#define CL_ME_COST_PENALTY_LOW_INTEL 0x1 179680d59932Sopenharmony_ci#define CL_ME_COST_PENALTY_NORMAL_INTEL 0x2 179780d59932Sopenharmony_ci#define CL_ME_COST_PENALTY_HIGH_INTEL 0x3 179880d59932Sopenharmony_ci 179980d59932Sopenharmony_ci#define CL_ME_COST_PRECISION_QPEL_INTEL 0x0 180080d59932Sopenharmony_ci#define CL_ME_COST_PRECISION_HPEL_INTEL 0x1 180180d59932Sopenharmony_ci#define CL_ME_COST_PRECISION_PEL_INTEL 0x2 180280d59932Sopenharmony_ci#define CL_ME_COST_PRECISION_DPEL_INTEL 0x3 180380d59932Sopenharmony_ci 180480d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_VERTICAL_INTEL 0x0 180580d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1 180680d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_DC_INTEL 0x2 180780d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_LEFT_INTEL 0x3 180880d59932Sopenharmony_ci 180980d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_RIGHT_INTEL 0x4 181080d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_PLANE_INTEL 0x4 181180d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_VERTICAL_RIGHT_INTEL 0x5 181280d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_DOWN_INTEL 0x6 181380d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_VERTICAL_LEFT_INTEL 0x7 181480d59932Sopenharmony_ci#define CL_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_UP_INTEL 0x8 181580d59932Sopenharmony_ci 181680d59932Sopenharmony_ci#define CL_ME_CHROMA_PREDICTOR_MODE_DC_INTEL 0x0 181780d59932Sopenharmony_ci#define CL_ME_CHROMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1 181880d59932Sopenharmony_ci#define CL_ME_CHROMA_PREDICTOR_MODE_VERTICAL_INTEL 0x2 181980d59932Sopenharmony_ci#define CL_ME_CHROMA_PREDICTOR_MODE_PLANE_INTEL 0x3 182080d59932Sopenharmony_ci 182180d59932Sopenharmony_ci/* cl_device_info */ 182280d59932Sopenharmony_ci#define CL_DEVICE_ME_VERSION_INTEL 0x407E 182380d59932Sopenharmony_ci 182480d59932Sopenharmony_ci#define CL_ME_VERSION_LEGACY_INTEL 0x0 182580d59932Sopenharmony_ci#define CL_ME_VERSION_ADVANCED_VER_1_INTEL 0x1 182680d59932Sopenharmony_ci#define CL_ME_VERSION_ADVANCED_VER_2_INTEL 0x2 182780d59932Sopenharmony_ci 182880d59932Sopenharmony_ciextern CL_API_ENTRY cl_accelerator_intel CL_API_CALL 182980d59932Sopenharmony_ciclCreateAcceleratorINTEL( 183080d59932Sopenharmony_ci cl_context context, 183180d59932Sopenharmony_ci cl_accelerator_type_intel accelerator_type, 183280d59932Sopenharmony_ci size_t descriptor_size, 183380d59932Sopenharmony_ci const void* descriptor, 183480d59932Sopenharmony_ci cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; 183580d59932Sopenharmony_ci 183680d59932Sopenharmony_citypedef cl_accelerator_intel (CL_API_CALL *clCreateAcceleratorINTEL_fn)( 183780d59932Sopenharmony_ci cl_context context, 183880d59932Sopenharmony_ci cl_accelerator_type_intel accelerator_type, 183980d59932Sopenharmony_ci size_t descriptor_size, 184080d59932Sopenharmony_ci const void* descriptor, 184180d59932Sopenharmony_ci cl_int* errcode_ret) CL_API_SUFFIX__VERSION_1_2; 184280d59932Sopenharmony_ci 184380d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 184480d59932Sopenharmony_ciclGetAcceleratorInfoINTEL( 184580d59932Sopenharmony_ci cl_accelerator_intel accelerator, 184680d59932Sopenharmony_ci cl_accelerator_info_intel param_name, 184780d59932Sopenharmony_ci size_t param_value_size, 184880d59932Sopenharmony_ci void* param_value, 184980d59932Sopenharmony_ci size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_2; 185080d59932Sopenharmony_ci 185180d59932Sopenharmony_citypedef cl_int (CL_API_CALL *clGetAcceleratorInfoINTEL_fn)( 185280d59932Sopenharmony_ci cl_accelerator_intel accelerator, 185380d59932Sopenharmony_ci cl_accelerator_info_intel param_name, 185480d59932Sopenharmony_ci size_t param_value_size, 185580d59932Sopenharmony_ci void* param_value, 185680d59932Sopenharmony_ci size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_1_2; 185780d59932Sopenharmony_ci 185880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 185980d59932Sopenharmony_ciclRetainAcceleratorINTEL( 186080d59932Sopenharmony_ci cl_accelerator_intel accelerator) CL_API_SUFFIX__VERSION_1_2; 186180d59932Sopenharmony_ci 186280d59932Sopenharmony_citypedef cl_int (CL_API_CALL *clRetainAcceleratorINTEL_fn)( 186380d59932Sopenharmony_ci cl_accelerator_intel accelerator) CL_API_SUFFIX__VERSION_1_2; 186480d59932Sopenharmony_ci 186580d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 186680d59932Sopenharmony_ciclReleaseAcceleratorINTEL( 186780d59932Sopenharmony_ci cl_accelerator_intel accelerator) CL_API_SUFFIX__VERSION_1_2; 186880d59932Sopenharmony_ci 186980d59932Sopenharmony_citypedef cl_int (CL_API_CALL *clReleaseAcceleratorINTEL_fn)( 187080d59932Sopenharmony_ci cl_accelerator_intel accelerator) CL_API_SUFFIX__VERSION_1_2; 187180d59932Sopenharmony_ci 187280d59932Sopenharmony_ci/****************************************** 187380d59932Sopenharmony_ci* cl_intel_simultaneous_sharing extension * 187480d59932Sopenharmony_ci*******************************************/ 187580d59932Sopenharmony_ci 187680d59932Sopenharmony_ci#define cl_intel_simultaneous_sharing 1 187780d59932Sopenharmony_ci 187880d59932Sopenharmony_ci#define CL_DEVICE_SIMULTANEOUS_INTEROPS_INTEL 0x4104 187980d59932Sopenharmony_ci#define CL_DEVICE_NUM_SIMULTANEOUS_INTEROPS_INTEL 0x4105 188080d59932Sopenharmony_ci 188180d59932Sopenharmony_ci/*********************************** 188280d59932Sopenharmony_ci* cl_intel_egl_image_yuv extension * 188380d59932Sopenharmony_ci************************************/ 188480d59932Sopenharmony_ci 188580d59932Sopenharmony_ci#define cl_intel_egl_image_yuv 1 188680d59932Sopenharmony_ci 188780d59932Sopenharmony_ci#define CL_EGL_YUV_PLANE_INTEL 0x4107 188880d59932Sopenharmony_ci 188980d59932Sopenharmony_ci/******************************** 189080d59932Sopenharmony_ci* cl_intel_packed_yuv extension * 189180d59932Sopenharmony_ci*********************************/ 189280d59932Sopenharmony_ci 189380d59932Sopenharmony_ci#define cl_intel_packed_yuv 1 189480d59932Sopenharmony_ci 189580d59932Sopenharmony_ci#define CL_YUYV_INTEL 0x4076 189680d59932Sopenharmony_ci#define CL_UYVY_INTEL 0x4077 189780d59932Sopenharmony_ci#define CL_YVYU_INTEL 0x4078 189880d59932Sopenharmony_ci#define CL_VYUY_INTEL 0x4079 189980d59932Sopenharmony_ci 190080d59932Sopenharmony_ci/******************************************** 190180d59932Sopenharmony_ci* cl_intel_required_subgroup_size extension * 190280d59932Sopenharmony_ci*********************************************/ 190380d59932Sopenharmony_ci 190480d59932Sopenharmony_ci#define cl_intel_required_subgroup_size 1 190580d59932Sopenharmony_ci 190680d59932Sopenharmony_ci#define CL_DEVICE_SUB_GROUP_SIZES_INTEL 0x4108 190780d59932Sopenharmony_ci#define CL_KERNEL_SPILL_MEM_SIZE_INTEL 0x4109 190880d59932Sopenharmony_ci#define CL_KERNEL_COMPILE_SUB_GROUP_SIZE_INTEL 0x410A 190980d59932Sopenharmony_ci 191080d59932Sopenharmony_ci/**************************************** 191180d59932Sopenharmony_ci* cl_intel_driver_diagnostics extension * 191280d59932Sopenharmony_ci*****************************************/ 191380d59932Sopenharmony_ci 191480d59932Sopenharmony_ci#define cl_intel_driver_diagnostics 1 191580d59932Sopenharmony_ci 191680d59932Sopenharmony_citypedef cl_uint cl_diagnostics_verbose_level; 191780d59932Sopenharmony_ci 191880d59932Sopenharmony_ci#define CL_CONTEXT_SHOW_DIAGNOSTICS_INTEL 0x4106 191980d59932Sopenharmony_ci 192080d59932Sopenharmony_ci#define CL_CONTEXT_DIAGNOSTICS_LEVEL_ALL_INTEL ( 0xff ) 192180d59932Sopenharmony_ci#define CL_CONTEXT_DIAGNOSTICS_LEVEL_GOOD_INTEL ( 1 ) 192280d59932Sopenharmony_ci#define CL_CONTEXT_DIAGNOSTICS_LEVEL_BAD_INTEL ( 1 << 1 ) 192380d59932Sopenharmony_ci#define CL_CONTEXT_DIAGNOSTICS_LEVEL_NEUTRAL_INTEL ( 1 << 2 ) 192480d59932Sopenharmony_ci 192580d59932Sopenharmony_ci/******************************** 192680d59932Sopenharmony_ci* cl_intel_planar_yuv extension * 192780d59932Sopenharmony_ci*********************************/ 192880d59932Sopenharmony_ci 192980d59932Sopenharmony_ci#define CL_NV12_INTEL 0x410E 193080d59932Sopenharmony_ci 193180d59932Sopenharmony_ci#define CL_MEM_NO_ACCESS_INTEL ( 1 << 24 ) 193280d59932Sopenharmony_ci#define CL_MEM_ACCESS_FLAGS_UNRESTRICTED_INTEL ( 1 << 25 ) 193380d59932Sopenharmony_ci 193480d59932Sopenharmony_ci#define CL_DEVICE_PLANAR_YUV_MAX_WIDTH_INTEL 0x417E 193580d59932Sopenharmony_ci#define CL_DEVICE_PLANAR_YUV_MAX_HEIGHT_INTEL 0x417F 193680d59932Sopenharmony_ci 193780d59932Sopenharmony_ci/******************************************************* 193880d59932Sopenharmony_ci* cl_intel_device_side_avc_motion_estimation extension * 193980d59932Sopenharmony_ci********************************************************/ 194080d59932Sopenharmony_ci 194180d59932Sopenharmony_ci#define CL_DEVICE_AVC_ME_VERSION_INTEL 0x410B 194280d59932Sopenharmony_ci#define CL_DEVICE_AVC_ME_SUPPORTS_TEXTURE_SAMPLER_USE_INTEL 0x410C 194380d59932Sopenharmony_ci#define CL_DEVICE_AVC_ME_SUPPORTS_PREEMPTION_INTEL 0x410D 194480d59932Sopenharmony_ci 194580d59932Sopenharmony_ci#define CL_AVC_ME_VERSION_0_INTEL 0x0 /* No support. */ 194680d59932Sopenharmony_ci#define CL_AVC_ME_VERSION_1_INTEL 0x1 /* First supported version. */ 194780d59932Sopenharmony_ci 194880d59932Sopenharmony_ci#define CL_AVC_ME_MAJOR_16x16_INTEL 0x0 194980d59932Sopenharmony_ci#define CL_AVC_ME_MAJOR_16x8_INTEL 0x1 195080d59932Sopenharmony_ci#define CL_AVC_ME_MAJOR_8x16_INTEL 0x2 195180d59932Sopenharmony_ci#define CL_AVC_ME_MAJOR_8x8_INTEL 0x3 195280d59932Sopenharmony_ci 195380d59932Sopenharmony_ci#define CL_AVC_ME_MINOR_8x8_INTEL 0x0 195480d59932Sopenharmony_ci#define CL_AVC_ME_MINOR_8x4_INTEL 0x1 195580d59932Sopenharmony_ci#define CL_AVC_ME_MINOR_4x8_INTEL 0x2 195680d59932Sopenharmony_ci#define CL_AVC_ME_MINOR_4x4_INTEL 0x3 195780d59932Sopenharmony_ci 195880d59932Sopenharmony_ci#define CL_AVC_ME_MAJOR_FORWARD_INTEL 0x0 195980d59932Sopenharmony_ci#define CL_AVC_ME_MAJOR_BACKWARD_INTEL 0x1 196080d59932Sopenharmony_ci#define CL_AVC_ME_MAJOR_BIDIRECTIONAL_INTEL 0x2 196180d59932Sopenharmony_ci 196280d59932Sopenharmony_ci#define CL_AVC_ME_PARTITION_MASK_ALL_INTEL 0x0 196380d59932Sopenharmony_ci#define CL_AVC_ME_PARTITION_MASK_16x16_INTEL 0x7E 196480d59932Sopenharmony_ci#define CL_AVC_ME_PARTITION_MASK_16x8_INTEL 0x7D 196580d59932Sopenharmony_ci#define CL_AVC_ME_PARTITION_MASK_8x16_INTEL 0x7B 196680d59932Sopenharmony_ci#define CL_AVC_ME_PARTITION_MASK_8x8_INTEL 0x77 196780d59932Sopenharmony_ci#define CL_AVC_ME_PARTITION_MASK_8x4_INTEL 0x6F 196880d59932Sopenharmony_ci#define CL_AVC_ME_PARTITION_MASK_4x8_INTEL 0x5F 196980d59932Sopenharmony_ci#define CL_AVC_ME_PARTITION_MASK_4x4_INTEL 0x3F 197080d59932Sopenharmony_ci 197180d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_EXHAUSTIVE_INTEL 0x0 197280d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_SMALL_INTEL 0x1 197380d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_TINY_INTEL 0x2 197480d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_EXTRA_TINY_INTEL 0x3 197580d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_DIAMOND_INTEL 0x4 197680d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_LARGE_DIAMOND_INTEL 0x5 197780d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_RESERVED0_INTEL 0x6 197880d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_RESERVED1_INTEL 0x7 197980d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_CUSTOM_INTEL 0x8 198080d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_16x12_RADIUS_INTEL 0x9 198180d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_4x4_RADIUS_INTEL 0x2 198280d59932Sopenharmony_ci#define CL_AVC_ME_SEARCH_WINDOW_2x2_RADIUS_INTEL 0xa 198380d59932Sopenharmony_ci 198480d59932Sopenharmony_ci#define CL_AVC_ME_SAD_ADJUST_MODE_NONE_INTEL 0x0 198580d59932Sopenharmony_ci#define CL_AVC_ME_SAD_ADJUST_MODE_HAAR_INTEL 0x2 198680d59932Sopenharmony_ci 198780d59932Sopenharmony_ci#define CL_AVC_ME_SUBPIXEL_MODE_INTEGER_INTEL 0x0 198880d59932Sopenharmony_ci#define CL_AVC_ME_SUBPIXEL_MODE_HPEL_INTEL 0x1 198980d59932Sopenharmony_ci#define CL_AVC_ME_SUBPIXEL_MODE_QPEL_INTEL 0x3 199080d59932Sopenharmony_ci 199180d59932Sopenharmony_ci#define CL_AVC_ME_COST_PRECISION_QPEL_INTEL 0x0 199280d59932Sopenharmony_ci#define CL_AVC_ME_COST_PRECISION_HPEL_INTEL 0x1 199380d59932Sopenharmony_ci#define CL_AVC_ME_COST_PRECISION_PEL_INTEL 0x2 199480d59932Sopenharmony_ci#define CL_AVC_ME_COST_PRECISION_DPEL_INTEL 0x3 199580d59932Sopenharmony_ci 199680d59932Sopenharmony_ci#define CL_AVC_ME_BIDIR_WEIGHT_QUARTER_INTEL 0x10 199780d59932Sopenharmony_ci#define CL_AVC_ME_BIDIR_WEIGHT_THIRD_INTEL 0x15 199880d59932Sopenharmony_ci#define CL_AVC_ME_BIDIR_WEIGHT_HALF_INTEL 0x20 199980d59932Sopenharmony_ci#define CL_AVC_ME_BIDIR_WEIGHT_TWO_THIRD_INTEL 0x2B 200080d59932Sopenharmony_ci#define CL_AVC_ME_BIDIR_WEIGHT_THREE_QUARTER_INTEL 0x30 200180d59932Sopenharmony_ci 200280d59932Sopenharmony_ci#define CL_AVC_ME_BORDER_REACHED_LEFT_INTEL 0x0 200380d59932Sopenharmony_ci#define CL_AVC_ME_BORDER_REACHED_RIGHT_INTEL 0x2 200480d59932Sopenharmony_ci#define CL_AVC_ME_BORDER_REACHED_TOP_INTEL 0x4 200580d59932Sopenharmony_ci#define CL_AVC_ME_BORDER_REACHED_BOTTOM_INTEL 0x8 200680d59932Sopenharmony_ci 200780d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_PARTITION_16x16_INTEL 0x0 200880d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_PARTITION_8x8_INTEL 0x4000 200980d59932Sopenharmony_ci 201080d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_16x16_FORWARD_ENABLE_INTEL ( 0x1 << 24 ) 201180d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_16x16_BACKWARD_ENABLE_INTEL ( 0x2 << 24 ) 201280d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_16x16_DUAL_ENABLE_INTEL ( 0x3 << 24 ) 201380d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_FORWARD_ENABLE_INTEL ( 0x55 << 24 ) 201480d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_BACKWARD_ENABLE_INTEL ( 0xAA << 24 ) 201580d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_DUAL_ENABLE_INTEL ( 0xFF << 24 ) 201680d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_0_FORWARD_ENABLE_INTEL ( 0x1 << 24 ) 201780d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_0_BACKWARD_ENABLE_INTEL ( 0x2 << 24 ) 201880d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_1_FORWARD_ENABLE_INTEL ( 0x1 << 26 ) 201980d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_1_BACKWARD_ENABLE_INTEL ( 0x2 << 26 ) 202080d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_2_FORWARD_ENABLE_INTEL ( 0x1 << 28 ) 202180d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_2_BACKWARD_ENABLE_INTEL ( 0x2 << 28 ) 202280d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_3_FORWARD_ENABLE_INTEL ( 0x1 << 30 ) 202380d59932Sopenharmony_ci#define CL_AVC_ME_SKIP_BLOCK_8x8_3_BACKWARD_ENABLE_INTEL ( 0x2 << 30 ) 202480d59932Sopenharmony_ci 202580d59932Sopenharmony_ci#define CL_AVC_ME_BLOCK_BASED_SKIP_4x4_INTEL 0x00 202680d59932Sopenharmony_ci#define CL_AVC_ME_BLOCK_BASED_SKIP_8x8_INTEL 0x80 202780d59932Sopenharmony_ci 202880d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_16x16_INTEL 0x0 202980d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_8x8_INTEL 0x1 203080d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_4x4_INTEL 0x2 203180d59932Sopenharmony_ci 203280d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_LUMA_PARTITION_MASK_16x16_INTEL 0x6 203380d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_LUMA_PARTITION_MASK_8x8_INTEL 0x5 203480d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_LUMA_PARTITION_MASK_4x4_INTEL 0x3 203580d59932Sopenharmony_ci 203680d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_NEIGHBOR_LEFT_MASK_ENABLE_INTEL 0x60 203780d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_NEIGHBOR_UPPER_MASK_ENABLE_INTEL 0x10 203880d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_NEIGHBOR_UPPER_RIGHT_MASK_ENABLE_INTEL 0x8 203980d59932Sopenharmony_ci#define CL_AVC_ME_INTRA_NEIGHBOR_UPPER_LEFT_MASK_ENABLE_INTEL 0x4 204080d59932Sopenharmony_ci 204180d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_VERTICAL_INTEL 0x0 204280d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1 204380d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_DC_INTEL 0x2 204480d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_LEFT_INTEL 0x3 204580d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_DIAGONAL_DOWN_RIGHT_INTEL 0x4 204680d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_PLANE_INTEL 0x4 204780d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_VERTICAL_RIGHT_INTEL 0x5 204880d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_DOWN_INTEL 0x6 204980d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_VERTICAL_LEFT_INTEL 0x7 205080d59932Sopenharmony_ci#define CL_AVC_ME_LUMA_PREDICTOR_MODE_HORIZONTAL_UP_INTEL 0x8 205180d59932Sopenharmony_ci#define CL_AVC_ME_CHROMA_PREDICTOR_MODE_DC_INTEL 0x0 205280d59932Sopenharmony_ci#define CL_AVC_ME_CHROMA_PREDICTOR_MODE_HORIZONTAL_INTEL 0x1 205380d59932Sopenharmony_ci#define CL_AVC_ME_CHROMA_PREDICTOR_MODE_VERTICAL_INTEL 0x2 205480d59932Sopenharmony_ci#define CL_AVC_ME_CHROMA_PREDICTOR_MODE_PLANE_INTEL 0x3 205580d59932Sopenharmony_ci 205680d59932Sopenharmony_ci#define CL_AVC_ME_FRAME_FORWARD_INTEL 0x1 205780d59932Sopenharmony_ci#define CL_AVC_ME_FRAME_BACKWARD_INTEL 0x2 205880d59932Sopenharmony_ci#define CL_AVC_ME_FRAME_DUAL_INTEL 0x3 205980d59932Sopenharmony_ci 206080d59932Sopenharmony_ci#define CL_AVC_ME_SLICE_TYPE_PRED_INTEL 0x0 206180d59932Sopenharmony_ci#define CL_AVC_ME_SLICE_TYPE_BPRED_INTEL 0x1 206280d59932Sopenharmony_ci#define CL_AVC_ME_SLICE_TYPE_INTRA_INTEL 0x2 206380d59932Sopenharmony_ci 206480d59932Sopenharmony_ci#define CL_AVC_ME_INTERLACED_SCAN_TOP_FIELD_INTEL 0x0 206580d59932Sopenharmony_ci#define CL_AVC_ME_INTERLACED_SCAN_BOTTOM_FIELD_INTEL 0x1 206680d59932Sopenharmony_ci 206780d59932Sopenharmony_ci/******************************************* 206880d59932Sopenharmony_ci* cl_intel_unified_shared_memory extension * 206980d59932Sopenharmony_ci********************************************/ 207080d59932Sopenharmony_ci#define cl_intel_unified_shared_memory 1 207180d59932Sopenharmony_ci 207280d59932Sopenharmony_citypedef cl_bitfield cl_device_unified_shared_memory_capabilities_intel; 207380d59932Sopenharmony_citypedef cl_properties cl_mem_properties_intel; 207480d59932Sopenharmony_citypedef cl_bitfield cl_mem_alloc_flags_intel; 207580d59932Sopenharmony_citypedef cl_uint cl_mem_info_intel; 207680d59932Sopenharmony_citypedef cl_uint cl_unified_shared_memory_type_intel; 207780d59932Sopenharmony_citypedef cl_uint cl_mem_advice_intel; 207880d59932Sopenharmony_ci 207980d59932Sopenharmony_ci/* cl_device_info */ 208080d59932Sopenharmony_ci#define CL_DEVICE_HOST_MEM_CAPABILITIES_INTEL 0x4190 208180d59932Sopenharmony_ci#define CL_DEVICE_DEVICE_MEM_CAPABILITIES_INTEL 0x4191 208280d59932Sopenharmony_ci#define CL_DEVICE_SINGLE_DEVICE_SHARED_MEM_CAPABILITIES_INTEL 0x4192 208380d59932Sopenharmony_ci#define CL_DEVICE_CROSS_DEVICE_SHARED_MEM_CAPABILITIES_INTEL 0x4193 208480d59932Sopenharmony_ci#define CL_DEVICE_SHARED_SYSTEM_MEM_CAPABILITIES_INTEL 0x4194 208580d59932Sopenharmony_ci 208680d59932Sopenharmony_ci/* cl_device_unified_shared_memory_capabilities_intel - bitfield */ 208780d59932Sopenharmony_ci#define CL_UNIFIED_SHARED_MEMORY_ACCESS_INTEL (1 << 0) 208880d59932Sopenharmony_ci#define CL_UNIFIED_SHARED_MEMORY_ATOMIC_ACCESS_INTEL (1 << 1) 208980d59932Sopenharmony_ci#define CL_UNIFIED_SHARED_MEMORY_CONCURRENT_ACCESS_INTEL (1 << 2) 209080d59932Sopenharmony_ci#define CL_UNIFIED_SHARED_MEMORY_CONCURRENT_ATOMIC_ACCESS_INTEL (1 << 3) 209180d59932Sopenharmony_ci 209280d59932Sopenharmony_ci/* cl_mem_properties_intel */ 209380d59932Sopenharmony_ci#define CL_MEM_ALLOC_FLAGS_INTEL 0x4195 209480d59932Sopenharmony_ci 209580d59932Sopenharmony_ci/* cl_mem_alloc_flags_intel - bitfield */ 209680d59932Sopenharmony_ci#define CL_MEM_ALLOC_WRITE_COMBINED_INTEL (1 << 0) 209780d59932Sopenharmony_ci#define CL_MEM_ALLOC_INITIAL_PLACEMENT_DEVICE_INTEL (1 << 1) 209880d59932Sopenharmony_ci#define CL_MEM_ALLOC_INITIAL_PLACEMENT_HOST_INTEL (1 << 2) 209980d59932Sopenharmony_ci 210080d59932Sopenharmony_ci/* cl_mem_alloc_info_intel */ 210180d59932Sopenharmony_ci#define CL_MEM_ALLOC_TYPE_INTEL 0x419A 210280d59932Sopenharmony_ci#define CL_MEM_ALLOC_BASE_PTR_INTEL 0x419B 210380d59932Sopenharmony_ci#define CL_MEM_ALLOC_SIZE_INTEL 0x419C 210480d59932Sopenharmony_ci#define CL_MEM_ALLOC_DEVICE_INTEL 0x419D 210580d59932Sopenharmony_ci 210680d59932Sopenharmony_ci/* cl_unified_shared_memory_type_intel */ 210780d59932Sopenharmony_ci#define CL_MEM_TYPE_UNKNOWN_INTEL 0x4196 210880d59932Sopenharmony_ci#define CL_MEM_TYPE_HOST_INTEL 0x4197 210980d59932Sopenharmony_ci#define CL_MEM_TYPE_DEVICE_INTEL 0x4198 211080d59932Sopenharmony_ci#define CL_MEM_TYPE_SHARED_INTEL 0x4199 211180d59932Sopenharmony_ci 211280d59932Sopenharmony_ci/* cl_kernel_exec_info */ 211380d59932Sopenharmony_ci#define CL_KERNEL_EXEC_INFO_INDIRECT_HOST_ACCESS_INTEL 0x4200 211480d59932Sopenharmony_ci#define CL_KERNEL_EXEC_INFO_INDIRECT_DEVICE_ACCESS_INTEL 0x4201 211580d59932Sopenharmony_ci#define CL_KERNEL_EXEC_INFO_INDIRECT_SHARED_ACCESS_INTEL 0x4202 211680d59932Sopenharmony_ci#define CL_KERNEL_EXEC_INFO_USM_PTRS_INTEL 0x4203 211780d59932Sopenharmony_ci 211880d59932Sopenharmony_ci/* cl_command_type */ 211980d59932Sopenharmony_ci#define CL_COMMAND_MEMFILL_INTEL 0x4204 212080d59932Sopenharmony_ci#define CL_COMMAND_MEMCPY_INTEL 0x4205 212180d59932Sopenharmony_ci#define CL_COMMAND_MIGRATEMEM_INTEL 0x4206 212280d59932Sopenharmony_ci#define CL_COMMAND_MEMADVISE_INTEL 0x4207 212380d59932Sopenharmony_ci 212480d59932Sopenharmony_ci 212580d59932Sopenharmony_citypedef void* (CL_API_CALL * 212680d59932Sopenharmony_ciclHostMemAllocINTEL_fn)( 212780d59932Sopenharmony_ci cl_context context, 212880d59932Sopenharmony_ci const cl_mem_properties_intel* properties, 212980d59932Sopenharmony_ci size_t size, 213080d59932Sopenharmony_ci cl_uint alignment, 213180d59932Sopenharmony_ci cl_int* errcode_ret) ; 213280d59932Sopenharmony_ci 213380d59932Sopenharmony_citypedef void* (CL_API_CALL * 213480d59932Sopenharmony_ciclDeviceMemAllocINTEL_fn)( 213580d59932Sopenharmony_ci cl_context context, 213680d59932Sopenharmony_ci cl_device_id device, 213780d59932Sopenharmony_ci const cl_mem_properties_intel* properties, 213880d59932Sopenharmony_ci size_t size, 213980d59932Sopenharmony_ci cl_uint alignment, 214080d59932Sopenharmony_ci cl_int* errcode_ret) ; 214180d59932Sopenharmony_ci 214280d59932Sopenharmony_citypedef void* (CL_API_CALL * 214380d59932Sopenharmony_ciclSharedMemAllocINTEL_fn)( 214480d59932Sopenharmony_ci cl_context context, 214580d59932Sopenharmony_ci cl_device_id device, 214680d59932Sopenharmony_ci const cl_mem_properties_intel* properties, 214780d59932Sopenharmony_ci size_t size, 214880d59932Sopenharmony_ci cl_uint alignment, 214980d59932Sopenharmony_ci cl_int* errcode_ret) ; 215080d59932Sopenharmony_ci 215180d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 215280d59932Sopenharmony_ciclMemFreeINTEL_fn)( 215380d59932Sopenharmony_ci cl_context context, 215480d59932Sopenharmony_ci void* ptr) ; 215580d59932Sopenharmony_ci 215680d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 215780d59932Sopenharmony_ciclMemBlockingFreeINTEL_fn)( 215880d59932Sopenharmony_ci cl_context context, 215980d59932Sopenharmony_ci void* ptr) ; 216080d59932Sopenharmony_ci 216180d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 216280d59932Sopenharmony_ciclGetMemAllocInfoINTEL_fn)( 216380d59932Sopenharmony_ci cl_context context, 216480d59932Sopenharmony_ci const void* ptr, 216580d59932Sopenharmony_ci cl_mem_info_intel param_name, 216680d59932Sopenharmony_ci size_t param_value_size, 216780d59932Sopenharmony_ci void* param_value, 216880d59932Sopenharmony_ci size_t* param_value_size_ret) ; 216980d59932Sopenharmony_ci 217080d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 217180d59932Sopenharmony_ciclSetKernelArgMemPointerINTEL_fn)( 217280d59932Sopenharmony_ci cl_kernel kernel, 217380d59932Sopenharmony_ci cl_uint arg_index, 217480d59932Sopenharmony_ci const void* arg_value) ; 217580d59932Sopenharmony_ci 217680d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 217780d59932Sopenharmony_ciclEnqueueMemFillINTEL_fn)( 217880d59932Sopenharmony_ci cl_command_queue command_queue, 217980d59932Sopenharmony_ci void* dst_ptr, 218080d59932Sopenharmony_ci const void* pattern, 218180d59932Sopenharmony_ci size_t pattern_size, 218280d59932Sopenharmony_ci size_t size, 218380d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 218480d59932Sopenharmony_ci const cl_event* event_wait_list, 218580d59932Sopenharmony_ci cl_event* event) ; 218680d59932Sopenharmony_ci 218780d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 218880d59932Sopenharmony_ciclEnqueueMemcpyINTEL_fn)( 218980d59932Sopenharmony_ci cl_command_queue command_queue, 219080d59932Sopenharmony_ci cl_bool blocking, 219180d59932Sopenharmony_ci void* dst_ptr, 219280d59932Sopenharmony_ci const void* src_ptr, 219380d59932Sopenharmony_ci size_t size, 219480d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 219580d59932Sopenharmony_ci const cl_event* event_wait_list, 219680d59932Sopenharmony_ci cl_event* event) ; 219780d59932Sopenharmony_ci 219880d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 219980d59932Sopenharmony_ciclEnqueueMemAdviseINTEL_fn)( 220080d59932Sopenharmony_ci cl_command_queue command_queue, 220180d59932Sopenharmony_ci const void* ptr, 220280d59932Sopenharmony_ci size_t size, 220380d59932Sopenharmony_ci cl_mem_advice_intel advice, 220480d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 220580d59932Sopenharmony_ci const cl_event* event_wait_list, 220680d59932Sopenharmony_ci cl_event* event) ; 220780d59932Sopenharmony_ci 220880d59932Sopenharmony_ci#ifndef CL_NO_PROTOTYPES 220980d59932Sopenharmony_ci 221080d59932Sopenharmony_ciextern CL_API_ENTRY void* CL_API_CALL 221180d59932Sopenharmony_ciclHostMemAllocINTEL( 221280d59932Sopenharmony_ci cl_context context, 221380d59932Sopenharmony_ci const cl_mem_properties_intel* properties, 221480d59932Sopenharmony_ci size_t size, 221580d59932Sopenharmony_ci cl_uint alignment, 221680d59932Sopenharmony_ci cl_int* errcode_ret) ; 221780d59932Sopenharmony_ci 221880d59932Sopenharmony_ciextern CL_API_ENTRY void* CL_API_CALL 221980d59932Sopenharmony_ciclDeviceMemAllocINTEL( 222080d59932Sopenharmony_ci cl_context context, 222180d59932Sopenharmony_ci cl_device_id device, 222280d59932Sopenharmony_ci const cl_mem_properties_intel* properties, 222380d59932Sopenharmony_ci size_t size, 222480d59932Sopenharmony_ci cl_uint alignment, 222580d59932Sopenharmony_ci cl_int* errcode_ret) ; 222680d59932Sopenharmony_ci 222780d59932Sopenharmony_ciextern CL_API_ENTRY void* CL_API_CALL 222880d59932Sopenharmony_ciclSharedMemAllocINTEL( 222980d59932Sopenharmony_ci cl_context context, 223080d59932Sopenharmony_ci cl_device_id device, 223180d59932Sopenharmony_ci const cl_mem_properties_intel* properties, 223280d59932Sopenharmony_ci size_t size, 223380d59932Sopenharmony_ci cl_uint alignment, 223480d59932Sopenharmony_ci cl_int* errcode_ret) ; 223580d59932Sopenharmony_ci 223680d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 223780d59932Sopenharmony_ciclMemFreeINTEL( 223880d59932Sopenharmony_ci cl_context context, 223980d59932Sopenharmony_ci void* ptr) ; 224080d59932Sopenharmony_ci 224180d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 224280d59932Sopenharmony_ciclMemBlockingFreeINTEL( 224380d59932Sopenharmony_ci cl_context context, 224480d59932Sopenharmony_ci void* ptr) ; 224580d59932Sopenharmony_ci 224680d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 224780d59932Sopenharmony_ciclGetMemAllocInfoINTEL( 224880d59932Sopenharmony_ci cl_context context, 224980d59932Sopenharmony_ci const void* ptr, 225080d59932Sopenharmony_ci cl_mem_info_intel param_name, 225180d59932Sopenharmony_ci size_t param_value_size, 225280d59932Sopenharmony_ci void* param_value, 225380d59932Sopenharmony_ci size_t* param_value_size_ret) ; 225480d59932Sopenharmony_ci 225580d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 225680d59932Sopenharmony_ciclSetKernelArgMemPointerINTEL( 225780d59932Sopenharmony_ci cl_kernel kernel, 225880d59932Sopenharmony_ci cl_uint arg_index, 225980d59932Sopenharmony_ci const void* arg_value) ; 226080d59932Sopenharmony_ci 226180d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 226280d59932Sopenharmony_ciclEnqueueMemFillINTEL( 226380d59932Sopenharmony_ci cl_command_queue command_queue, 226480d59932Sopenharmony_ci void* dst_ptr, 226580d59932Sopenharmony_ci const void* pattern, 226680d59932Sopenharmony_ci size_t pattern_size, 226780d59932Sopenharmony_ci size_t size, 226880d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 226980d59932Sopenharmony_ci const cl_event* event_wait_list, 227080d59932Sopenharmony_ci cl_event* event) ; 227180d59932Sopenharmony_ci 227280d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 227380d59932Sopenharmony_ciclEnqueueMemcpyINTEL( 227480d59932Sopenharmony_ci cl_command_queue command_queue, 227580d59932Sopenharmony_ci cl_bool blocking, 227680d59932Sopenharmony_ci void* dst_ptr, 227780d59932Sopenharmony_ci const void* src_ptr, 227880d59932Sopenharmony_ci size_t size, 227980d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 228080d59932Sopenharmony_ci const cl_event* event_wait_list, 228180d59932Sopenharmony_ci cl_event* event) ; 228280d59932Sopenharmony_ci 228380d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 228480d59932Sopenharmony_ciclEnqueueMemAdviseINTEL( 228580d59932Sopenharmony_ci cl_command_queue command_queue, 228680d59932Sopenharmony_ci const void* ptr, 228780d59932Sopenharmony_ci size_t size, 228880d59932Sopenharmony_ci cl_mem_advice_intel advice, 228980d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 229080d59932Sopenharmony_ci const cl_event* event_wait_list, 229180d59932Sopenharmony_ci cl_event* event) ; 229280d59932Sopenharmony_ci 229380d59932Sopenharmony_ci#endif /* CL_NO_PROTOTYPES */ 229480d59932Sopenharmony_ci 229580d59932Sopenharmony_ci#if defined(CL_VERSION_1_2) 229680d59932Sopenharmony_ci/* Requires OpenCL 1.2 for cl_mem_migration_flags: */ 229780d59932Sopenharmony_ci 229880d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 229980d59932Sopenharmony_ciclEnqueueMigrateMemINTEL_fn)( 230080d59932Sopenharmony_ci cl_command_queue command_queue, 230180d59932Sopenharmony_ci const void* ptr, 230280d59932Sopenharmony_ci size_t size, 230380d59932Sopenharmony_ci cl_mem_migration_flags flags, 230480d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 230580d59932Sopenharmony_ci const cl_event* event_wait_list, 230680d59932Sopenharmony_ci cl_event* event) ; 230780d59932Sopenharmony_ci 230880d59932Sopenharmony_ci#ifndef CL_NO_PROTOTYPES 230980d59932Sopenharmony_ci 231080d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 231180d59932Sopenharmony_ciclEnqueueMigrateMemINTEL( 231280d59932Sopenharmony_ci cl_command_queue command_queue, 231380d59932Sopenharmony_ci const void* ptr, 231480d59932Sopenharmony_ci size_t size, 231580d59932Sopenharmony_ci cl_mem_migration_flags flags, 231680d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 231780d59932Sopenharmony_ci const cl_event* event_wait_list, 231880d59932Sopenharmony_ci cl_event* event) ; 231980d59932Sopenharmony_ci 232080d59932Sopenharmony_ci#endif /* CL_NO_PROTOTYPES */ 232180d59932Sopenharmony_ci 232280d59932Sopenharmony_ci#endif /* defined(CL_VERSION_1_2) */ 232380d59932Sopenharmony_ci 232480d59932Sopenharmony_ci/* deprecated, use clEnqueueMemFillINTEL instead */ 232580d59932Sopenharmony_ci 232680d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 232780d59932Sopenharmony_ciclEnqueueMemsetINTEL_fn)( 232880d59932Sopenharmony_ci cl_command_queue command_queue, 232980d59932Sopenharmony_ci void* dst_ptr, 233080d59932Sopenharmony_ci cl_int value, 233180d59932Sopenharmony_ci size_t size, 233280d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 233380d59932Sopenharmony_ci const cl_event* event_wait_list, 233480d59932Sopenharmony_ci cl_event* event) ; 233580d59932Sopenharmony_ci 233680d59932Sopenharmony_ci#ifndef CL_NO_PROTOTYPES 233780d59932Sopenharmony_ci 233880d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 233980d59932Sopenharmony_ciclEnqueueMemsetINTEL( 234080d59932Sopenharmony_ci cl_command_queue command_queue, 234180d59932Sopenharmony_ci void* dst_ptr, 234280d59932Sopenharmony_ci cl_int value, 234380d59932Sopenharmony_ci size_t size, 234480d59932Sopenharmony_ci cl_uint num_events_in_wait_list, 234580d59932Sopenharmony_ci const cl_event* event_wait_list, 234680d59932Sopenharmony_ci cl_event* event) ; 234780d59932Sopenharmony_ci 234880d59932Sopenharmony_ci#endif /* CL_NO_PROTOTYPES */ 234980d59932Sopenharmony_ci 235080d59932Sopenharmony_ci/*************************************************************** 235180d59932Sopenharmony_ci* cl_intel_mem_alloc_buffer_location 235280d59932Sopenharmony_ci***************************************************************/ 235380d59932Sopenharmony_ci#define cl_intel_mem_alloc_buffer_location 1 235480d59932Sopenharmony_ci#define CL_INTEL_MEM_ALLOC_BUFFER_LOCATION_EXTENSION_NAME \ 235580d59932Sopenharmony_ci "cl_intel_mem_alloc_buffer_location" 235680d59932Sopenharmony_ci 235780d59932Sopenharmony_ci/* cl_mem_properties_intel */ 235880d59932Sopenharmony_ci#define CL_MEM_ALLOC_BUFFER_LOCATION_INTEL 0x419E 235980d59932Sopenharmony_ci 236080d59932Sopenharmony_ci/* cl_mem_alloc_info_intel */ 236180d59932Sopenharmony_ci/* enum CL_MEM_ALLOC_BUFFER_LOCATION_INTEL */ 236280d59932Sopenharmony_ci 236380d59932Sopenharmony_ci/*************************************************** 236480d59932Sopenharmony_ci* cl_intel_create_buffer_with_properties extension * 236580d59932Sopenharmony_ci****************************************************/ 236680d59932Sopenharmony_ci 236780d59932Sopenharmony_ci#define cl_intel_create_buffer_with_properties 1 236880d59932Sopenharmony_ci 236980d59932Sopenharmony_ciextern CL_API_ENTRY cl_mem CL_API_CALL 237080d59932Sopenharmony_ciclCreateBufferWithPropertiesINTEL( 237180d59932Sopenharmony_ci cl_context context, 237280d59932Sopenharmony_ci const cl_mem_properties_intel* properties, 237380d59932Sopenharmony_ci cl_mem_flags flags, 237480d59932Sopenharmony_ci size_t size, 237580d59932Sopenharmony_ci void * host_ptr, 237680d59932Sopenharmony_ci cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; 237780d59932Sopenharmony_ci 237880d59932Sopenharmony_citypedef cl_mem (CL_API_CALL * 237980d59932Sopenharmony_ciclCreateBufferWithPropertiesINTEL_fn)( 238080d59932Sopenharmony_ci cl_context context, 238180d59932Sopenharmony_ci const cl_mem_properties_intel* properties, 238280d59932Sopenharmony_ci cl_mem_flags flags, 238380d59932Sopenharmony_ci size_t size, 238480d59932Sopenharmony_ci void * host_ptr, 238580d59932Sopenharmony_ci cl_int * errcode_ret) CL_API_SUFFIX__VERSION_1_0; 238680d59932Sopenharmony_ci 238780d59932Sopenharmony_ci/****************************************** 238880d59932Sopenharmony_ci* cl_intel_mem_channel_property extension * 238980d59932Sopenharmony_ci*******************************************/ 239080d59932Sopenharmony_ci 239180d59932Sopenharmony_ci#define CL_MEM_CHANNEL_INTEL 0x4213 239280d59932Sopenharmony_ci 239380d59932Sopenharmony_ci/********************************* 239480d59932Sopenharmony_ci* cl_intel_mem_force_host_memory * 239580d59932Sopenharmony_ci**********************************/ 239680d59932Sopenharmony_ci 239780d59932Sopenharmony_ci#define cl_intel_mem_force_host_memory 1 239880d59932Sopenharmony_ci 239980d59932Sopenharmony_ci/* cl_mem_flags */ 240080d59932Sopenharmony_ci#define CL_MEM_FORCE_HOST_MEMORY_INTEL (1 << 20) 240180d59932Sopenharmony_ci 240280d59932Sopenharmony_ci/*************************************************************** 240380d59932Sopenharmony_ci* cl_intel_command_queue_families 240480d59932Sopenharmony_ci***************************************************************/ 240580d59932Sopenharmony_ci#define cl_intel_command_queue_families 1 240680d59932Sopenharmony_ci 240780d59932Sopenharmony_citypedef cl_bitfield cl_command_queue_capabilities_intel; 240880d59932Sopenharmony_ci 240980d59932Sopenharmony_ci#define CL_QUEUE_FAMILY_MAX_NAME_SIZE_INTEL 64 241080d59932Sopenharmony_ci 241180d59932Sopenharmony_citypedef struct _cl_queue_family_properties_intel { 241280d59932Sopenharmony_ci cl_command_queue_properties properties; 241380d59932Sopenharmony_ci cl_command_queue_capabilities_intel capabilities; 241480d59932Sopenharmony_ci cl_uint count; 241580d59932Sopenharmony_ci char name[CL_QUEUE_FAMILY_MAX_NAME_SIZE_INTEL]; 241680d59932Sopenharmony_ci} cl_queue_family_properties_intel; 241780d59932Sopenharmony_ci 241880d59932Sopenharmony_ci/* cl_device_info */ 241980d59932Sopenharmony_ci#define CL_DEVICE_QUEUE_FAMILY_PROPERTIES_INTEL 0x418B 242080d59932Sopenharmony_ci 242180d59932Sopenharmony_ci/* cl_queue_properties */ 242280d59932Sopenharmony_ci#define CL_QUEUE_FAMILY_INTEL 0x418C 242380d59932Sopenharmony_ci#define CL_QUEUE_INDEX_INTEL 0x418D 242480d59932Sopenharmony_ci 242580d59932Sopenharmony_ci/* cl_command_queue_capabilities_intel */ 242680d59932Sopenharmony_ci#define CL_QUEUE_DEFAULT_CAPABILITIES_INTEL 0 242780d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_CREATE_SINGLE_QUEUE_EVENTS_INTEL (1 << 0) 242880d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_CREATE_CROSS_QUEUE_EVENTS_INTEL (1 << 1) 242980d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_SINGLE_QUEUE_EVENT_WAIT_LIST_INTEL (1 << 2) 243080d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_CROSS_QUEUE_EVENT_WAIT_LIST_INTEL (1 << 3) 243180d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_TRANSFER_BUFFER_INTEL (1 << 8) 243280d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_TRANSFER_BUFFER_RECT_INTEL (1 << 9) 243380d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_MAP_BUFFER_INTEL (1 << 10) 243480d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_FILL_BUFFER_INTEL (1 << 11) 243580d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_TRANSFER_IMAGE_INTEL (1 << 12) 243680d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_MAP_IMAGE_INTEL (1 << 13) 243780d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_FILL_IMAGE_INTEL (1 << 14) 243880d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_TRANSFER_BUFFER_IMAGE_INTEL (1 << 15) 243980d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_TRANSFER_IMAGE_BUFFER_INTEL (1 << 16) 244080d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_MARKER_INTEL (1 << 24) 244180d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_BARRIER_INTEL (1 << 25) 244280d59932Sopenharmony_ci#define CL_QUEUE_CAPABILITY_KERNEL_INTEL (1 << 26) 244380d59932Sopenharmony_ci 244480d59932Sopenharmony_ci/*************************************************************** 244580d59932Sopenharmony_ci* cl_intel_sharing_format_query 244680d59932Sopenharmony_ci***************************************************************/ 244780d59932Sopenharmony_ci#define cl_intel_sharing_format_query 1 244880d59932Sopenharmony_ci 244980d59932Sopenharmony_ci/*************************************************************** 245080d59932Sopenharmony_ci* cl_ext_image_requirements_info 245180d59932Sopenharmony_ci***************************************************************/ 245280d59932Sopenharmony_ci 245380d59932Sopenharmony_ci#ifdef CL_VERSION_3_0 245480d59932Sopenharmony_ci 245580d59932Sopenharmony_ci#define cl_ext_image_requirements_info 1 245680d59932Sopenharmony_ci 245780d59932Sopenharmony_citypedef cl_uint cl_image_requirements_info_ext; 245880d59932Sopenharmony_ci 245980d59932Sopenharmony_ci#define CL_IMAGE_REQUIREMENTS_ROW_PITCH_ALIGNMENT_EXT 0x1290 246080d59932Sopenharmony_ci#define CL_IMAGE_REQUIREMENTS_BASE_ADDRESS_ALIGNMENT_EXT 0x1292 246180d59932Sopenharmony_ci#define CL_IMAGE_REQUIREMENTS_SIZE_EXT 0x12B2 246280d59932Sopenharmony_ci#define CL_IMAGE_REQUIREMENTS_MAX_WIDTH_EXT 0x12B3 246380d59932Sopenharmony_ci#define CL_IMAGE_REQUIREMENTS_MAX_HEIGHT_EXT 0x12B4 246480d59932Sopenharmony_ci#define CL_IMAGE_REQUIREMENTS_MAX_DEPTH_EXT 0x12B5 246580d59932Sopenharmony_ci#define CL_IMAGE_REQUIREMENTS_MAX_ARRAY_SIZE_EXT 0x12B6 246680d59932Sopenharmony_ci 246780d59932Sopenharmony_ciextern CL_API_ENTRY cl_int CL_API_CALL 246880d59932Sopenharmony_ciclGetImageRequirementsInfoEXT( 246980d59932Sopenharmony_ci cl_context context, 247080d59932Sopenharmony_ci const cl_mem_properties* properties, 247180d59932Sopenharmony_ci cl_mem_flags flags, 247280d59932Sopenharmony_ci const cl_image_format* image_format, 247380d59932Sopenharmony_ci const cl_image_desc* image_desc, 247480d59932Sopenharmony_ci cl_image_requirements_info_ext param_name, 247580d59932Sopenharmony_ci size_t param_value_size, 247680d59932Sopenharmony_ci void* param_value, 247780d59932Sopenharmony_ci size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_3_0; 247880d59932Sopenharmony_ci 247980d59932Sopenharmony_citypedef cl_int (CL_API_CALL * 248080d59932Sopenharmony_ciclGetImageRequirementsInfoEXT_fn)( 248180d59932Sopenharmony_ci cl_context context, 248280d59932Sopenharmony_ci const cl_mem_properties* properties, 248380d59932Sopenharmony_ci cl_mem_flags flags, 248480d59932Sopenharmony_ci const cl_image_format* image_format, 248580d59932Sopenharmony_ci const cl_image_desc* image_desc, 248680d59932Sopenharmony_ci cl_image_requirements_info_ext param_name, 248780d59932Sopenharmony_ci size_t param_value_size, 248880d59932Sopenharmony_ci void* param_value, 248980d59932Sopenharmony_ci size_t* param_value_size_ret) CL_API_SUFFIX__VERSION_3_0; 249080d59932Sopenharmony_ci 249180d59932Sopenharmony_ci#endif 249280d59932Sopenharmony_ci 249380d59932Sopenharmony_ci/*************************************************************** 249480d59932Sopenharmony_ci* cl_ext_image_from_buffer 249580d59932Sopenharmony_ci***************************************************************/ 249680d59932Sopenharmony_ci 249780d59932Sopenharmony_ci#ifdef CL_VERSION_3_0 249880d59932Sopenharmony_ci 249980d59932Sopenharmony_ci#define cl_ext_image_from_buffer 1 250080d59932Sopenharmony_ci 250180d59932Sopenharmony_ci#define CL_IMAGE_REQUIREMENTS_SLICE_PITCH_ALIGNMENT_EXT 0x1291 250280d59932Sopenharmony_ci 250380d59932Sopenharmony_ci#endif 250480d59932Sopenharmony_ci 250580d59932Sopenharmony_ci#ifdef __cplusplus 250680d59932Sopenharmony_ci} 250780d59932Sopenharmony_ci#endif 250880d59932Sopenharmony_ci 250980d59932Sopenharmony_ci 251080d59932Sopenharmony_ci#endif /* __CL_EXT_H */ 2511