1*8975f5c5SAndroid Build Coastguard Worker // 2*8975f5c5SAndroid Build Coastguard Worker // Copyright 2021 The ANGLE Project Authors. All rights reserved. 3*8975f5c5SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be 4*8975f5c5SAndroid Build Coastguard Worker // found in the LICENSE file. 5*8975f5c5SAndroid Build Coastguard Worker // 6*8975f5c5SAndroid Build Coastguard Worker // cl_dispatch_table_autogen.cpp: Dispatch table for CL ICD Loader. 7*8975f5c5SAndroid Build Coastguard Worker 8*8975f5c5SAndroid Build Coastguard Worker #include "libGLESv2/cl_dispatch_table.h" 9*8975f5c5SAndroid Build Coastguard Worker 10*8975f5c5SAndroid Build Coastguard Worker #include "libGLESv2/entry_points_cl_autogen.h" 11*8975f5c5SAndroid Build Coastguard Worker 12*8975f5c5SAndroid Build Coastguard Worker // clang-format off 13*8975f5c5SAndroid Build Coastguard Worker 14*8975f5c5SAndroid Build Coastguard Worker // The correct order is required as defined in 'include/CL/cl_icd.h'. 15*8975f5c5SAndroid Build Coastguard Worker const cl_icd_dispatch gCLIcdDispatchTable = { 16*8975f5c5SAndroid Build Coastguard Worker 17*8975f5c5SAndroid Build Coastguard Worker // OpenCL 1.0 18*8975f5c5SAndroid Build Coastguard Worker cl::clGetPlatformIDs, 19*8975f5c5SAndroid Build Coastguard Worker cl::clGetPlatformInfo, 20*8975f5c5SAndroid Build Coastguard Worker cl::clGetDeviceIDs, 21*8975f5c5SAndroid Build Coastguard Worker cl::clGetDeviceInfo, 22*8975f5c5SAndroid Build Coastguard Worker cl::clCreateContext, 23*8975f5c5SAndroid Build Coastguard Worker cl::clCreateContextFromType, 24*8975f5c5SAndroid Build Coastguard Worker cl::clRetainContext, 25*8975f5c5SAndroid Build Coastguard Worker cl::clReleaseContext, 26*8975f5c5SAndroid Build Coastguard Worker cl::clGetContextInfo, 27*8975f5c5SAndroid Build Coastguard Worker cl::clCreateCommandQueue, 28*8975f5c5SAndroid Build Coastguard Worker cl::clRetainCommandQueue, 29*8975f5c5SAndroid Build Coastguard Worker cl::clReleaseCommandQueue, 30*8975f5c5SAndroid Build Coastguard Worker cl::clGetCommandQueueInfo, 31*8975f5c5SAndroid Build Coastguard Worker cl::clSetCommandQueueProperty, 32*8975f5c5SAndroid Build Coastguard Worker cl::clCreateBuffer, 33*8975f5c5SAndroid Build Coastguard Worker cl::clCreateImage2D, 34*8975f5c5SAndroid Build Coastguard Worker cl::clCreateImage3D, 35*8975f5c5SAndroid Build Coastguard Worker cl::clRetainMemObject, 36*8975f5c5SAndroid Build Coastguard Worker cl::clReleaseMemObject, 37*8975f5c5SAndroid Build Coastguard Worker cl::clGetSupportedImageFormats, 38*8975f5c5SAndroid Build Coastguard Worker cl::clGetMemObjectInfo, 39*8975f5c5SAndroid Build Coastguard Worker cl::clGetImageInfo, 40*8975f5c5SAndroid Build Coastguard Worker cl::clCreateSampler, 41*8975f5c5SAndroid Build Coastguard Worker cl::clRetainSampler, 42*8975f5c5SAndroid Build Coastguard Worker cl::clReleaseSampler, 43*8975f5c5SAndroid Build Coastguard Worker cl::clGetSamplerInfo, 44*8975f5c5SAndroid Build Coastguard Worker cl::clCreateProgramWithSource, 45*8975f5c5SAndroid Build Coastguard Worker cl::clCreateProgramWithBinary, 46*8975f5c5SAndroid Build Coastguard Worker cl::clRetainProgram, 47*8975f5c5SAndroid Build Coastguard Worker cl::clReleaseProgram, 48*8975f5c5SAndroid Build Coastguard Worker cl::clBuildProgram, 49*8975f5c5SAndroid Build Coastguard Worker cl::clUnloadCompiler, 50*8975f5c5SAndroid Build Coastguard Worker cl::clGetProgramInfo, 51*8975f5c5SAndroid Build Coastguard Worker cl::clGetProgramBuildInfo, 52*8975f5c5SAndroid Build Coastguard Worker cl::clCreateKernel, 53*8975f5c5SAndroid Build Coastguard Worker cl::clCreateKernelsInProgram, 54*8975f5c5SAndroid Build Coastguard Worker cl::clRetainKernel, 55*8975f5c5SAndroid Build Coastguard Worker cl::clReleaseKernel, 56*8975f5c5SAndroid Build Coastguard Worker cl::clSetKernelArg, 57*8975f5c5SAndroid Build Coastguard Worker cl::clGetKernelInfo, 58*8975f5c5SAndroid Build Coastguard Worker cl::clGetKernelWorkGroupInfo, 59*8975f5c5SAndroid Build Coastguard Worker cl::clWaitForEvents, 60*8975f5c5SAndroid Build Coastguard Worker cl::clGetEventInfo, 61*8975f5c5SAndroid Build Coastguard Worker cl::clRetainEvent, 62*8975f5c5SAndroid Build Coastguard Worker cl::clReleaseEvent, 63*8975f5c5SAndroid Build Coastguard Worker cl::clGetEventProfilingInfo, 64*8975f5c5SAndroid Build Coastguard Worker cl::clFlush, 65*8975f5c5SAndroid Build Coastguard Worker cl::clFinish, 66*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueReadBuffer, 67*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueWriteBuffer, 68*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueCopyBuffer, 69*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueReadImage, 70*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueWriteImage, 71*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueCopyImage, 72*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueCopyImageToBuffer, 73*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueCopyBufferToImage, 74*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueMapBuffer, 75*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueMapImage, 76*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueUnmapMemObject, 77*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueNDRangeKernel, 78*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueTask, 79*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueNativeKernel, 80*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueMarker, 81*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueWaitForEvents, 82*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueBarrier, 83*8975f5c5SAndroid Build Coastguard Worker cl::clGetExtensionFunctionAddress, 84*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromGLBuffer, 85*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromGLTexture2D, 86*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromGLTexture3D, 87*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromGLRenderbuffer, 88*8975f5c5SAndroid Build Coastguard Worker nullptr, // clGetGLObjectInfo, 89*8975f5c5SAndroid Build Coastguard Worker nullptr, // clGetGLTextureInfo, 90*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueAcquireGLObjects, 91*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueReleaseGLObjects, 92*8975f5c5SAndroid Build Coastguard Worker nullptr, // clGetGLContextInfoKHR, 93*8975f5c5SAndroid Build Coastguard Worker 94*8975f5c5SAndroid Build Coastguard Worker // cl_khr_d3d10_sharing 95*8975f5c5SAndroid Build Coastguard Worker nullptr, // clGetDeviceIDsFromD3D10KHR, 96*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromD3D10BufferKHR, 97*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromD3D10Texture2DKHR, 98*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromD3D10Texture3DKHR, 99*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueAcquireD3D10ObjectsKHR, 100*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueReleaseD3D10ObjectsKHR, 101*8975f5c5SAndroid Build Coastguard Worker 102*8975f5c5SAndroid Build Coastguard Worker // OpenCL 1.1 103*8975f5c5SAndroid Build Coastguard Worker cl::clSetEventCallback, 104*8975f5c5SAndroid Build Coastguard Worker cl::clCreateSubBuffer, 105*8975f5c5SAndroid Build Coastguard Worker cl::clSetMemObjectDestructorCallback, 106*8975f5c5SAndroid Build Coastguard Worker cl::clCreateUserEvent, 107*8975f5c5SAndroid Build Coastguard Worker cl::clSetUserEventStatus, 108*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueReadBufferRect, 109*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueWriteBufferRect, 110*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueCopyBufferRect, 111*8975f5c5SAndroid Build Coastguard Worker 112*8975f5c5SAndroid Build Coastguard Worker // cl_ext_device_fission 113*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateSubDevicesEXT, 114*8975f5c5SAndroid Build Coastguard Worker nullptr, // clRetainDeviceEXT, 115*8975f5c5SAndroid Build Coastguard Worker nullptr, // clReleaseDeviceEXT, 116*8975f5c5SAndroid Build Coastguard Worker 117*8975f5c5SAndroid Build Coastguard Worker // cl_khr_gl_event 118*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateEventFromGLsyncKHR, 119*8975f5c5SAndroid Build Coastguard Worker 120*8975f5c5SAndroid Build Coastguard Worker // OpenCL 1.2 121*8975f5c5SAndroid Build Coastguard Worker cl::clCreateSubDevices, 122*8975f5c5SAndroid Build Coastguard Worker cl::clRetainDevice, 123*8975f5c5SAndroid Build Coastguard Worker cl::clReleaseDevice, 124*8975f5c5SAndroid Build Coastguard Worker cl::clCreateImage, 125*8975f5c5SAndroid Build Coastguard Worker cl::clCreateProgramWithBuiltInKernels, 126*8975f5c5SAndroid Build Coastguard Worker cl::clCompileProgram, 127*8975f5c5SAndroid Build Coastguard Worker cl::clLinkProgram, 128*8975f5c5SAndroid Build Coastguard Worker cl::clUnloadPlatformCompiler, 129*8975f5c5SAndroid Build Coastguard Worker cl::clGetKernelArgInfo, 130*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueFillBuffer, 131*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueFillImage, 132*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueMigrateMemObjects, 133*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueMarkerWithWaitList, 134*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueBarrierWithWaitList, 135*8975f5c5SAndroid Build Coastguard Worker cl::clGetExtensionFunctionAddressForPlatform, 136*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromGLTexture, 137*8975f5c5SAndroid Build Coastguard Worker 138*8975f5c5SAndroid Build Coastguard Worker // cl_khr_d3d11_sharing 139*8975f5c5SAndroid Build Coastguard Worker nullptr, // clGetDeviceIDsFromD3D11KHR, 140*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromD3D11BufferKHR, 141*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromD3D11Texture2DKHR, 142*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromD3D11Texture3DKHR, 143*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromDX9MediaSurfaceKHR, 144*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueAcquireD3D11ObjectsKHR, 145*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueReleaseD3D11ObjectsKHR, 146*8975f5c5SAndroid Build Coastguard Worker 147*8975f5c5SAndroid Build Coastguard Worker // cl_khr_dx9_media_sharing 148*8975f5c5SAndroid Build Coastguard Worker nullptr, // clGetDeviceIDsFromDX9MediaAdapterKHR, 149*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueAcquireDX9MediaSurfacesKHR, 150*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueReleaseDX9MediaSurfacesKHR, 151*8975f5c5SAndroid Build Coastguard Worker 152*8975f5c5SAndroid Build Coastguard Worker // cl_khr_egl_image 153*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateFromEGLImageKHR, 154*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueAcquireEGLObjectsKHR, 155*8975f5c5SAndroid Build Coastguard Worker nullptr, // clEnqueueReleaseEGLObjectsKHR, 156*8975f5c5SAndroid Build Coastguard Worker 157*8975f5c5SAndroid Build Coastguard Worker // cl_khr_egl_event 158*8975f5c5SAndroid Build Coastguard Worker nullptr, // clCreateEventFromEGLSyncKHR, 159*8975f5c5SAndroid Build Coastguard Worker 160*8975f5c5SAndroid Build Coastguard Worker // OpenCL 2.0 161*8975f5c5SAndroid Build Coastguard Worker cl::clCreateCommandQueueWithProperties, 162*8975f5c5SAndroid Build Coastguard Worker cl::clCreatePipe, 163*8975f5c5SAndroid Build Coastguard Worker cl::clGetPipeInfo, 164*8975f5c5SAndroid Build Coastguard Worker cl::clSVMAlloc, 165*8975f5c5SAndroid Build Coastguard Worker cl::clSVMFree, 166*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueSVMFree, 167*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueSVMMemcpy, 168*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueSVMMemFill, 169*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueSVMMap, 170*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueSVMUnmap, 171*8975f5c5SAndroid Build Coastguard Worker cl::clCreateSamplerWithProperties, 172*8975f5c5SAndroid Build Coastguard Worker cl::clSetKernelArgSVMPointer, 173*8975f5c5SAndroid Build Coastguard Worker cl::clSetKernelExecInfo, 174*8975f5c5SAndroid Build Coastguard Worker 175*8975f5c5SAndroid Build Coastguard Worker // cl_khr_sub_groups 176*8975f5c5SAndroid Build Coastguard Worker nullptr, // clGetKernelSubGroupInfoKHR, 177*8975f5c5SAndroid Build Coastguard Worker 178*8975f5c5SAndroid Build Coastguard Worker // OpenCL 2.1 179*8975f5c5SAndroid Build Coastguard Worker cl::clCloneKernel, 180*8975f5c5SAndroid Build Coastguard Worker cl::clCreateProgramWithIL, 181*8975f5c5SAndroid Build Coastguard Worker cl::clEnqueueSVMMigrateMem, 182*8975f5c5SAndroid Build Coastguard Worker cl::clGetDeviceAndHostTimer, 183*8975f5c5SAndroid Build Coastguard Worker cl::clGetHostTimer, 184*8975f5c5SAndroid Build Coastguard Worker cl::clGetKernelSubGroupInfo, 185*8975f5c5SAndroid Build Coastguard Worker cl::clSetDefaultDeviceCommandQueue, 186*8975f5c5SAndroid Build Coastguard Worker 187*8975f5c5SAndroid Build Coastguard Worker // OpenCL 2.2 188*8975f5c5SAndroid Build Coastguard Worker cl::clSetProgramReleaseCallback, 189*8975f5c5SAndroid Build Coastguard Worker cl::clSetProgramSpecializationConstant, 190*8975f5c5SAndroid Build Coastguard Worker 191*8975f5c5SAndroid Build Coastguard Worker // OpenCL 3.0 192*8975f5c5SAndroid Build Coastguard Worker cl::clCreateBufferWithProperties, 193*8975f5c5SAndroid Build Coastguard Worker cl::clCreateImageWithProperties, 194*8975f5c5SAndroid Build Coastguard Worker cl::clSetContextDestructorCallback 195*8975f5c5SAndroid Build Coastguard Worker }; 196*8975f5c5SAndroid Build Coastguard Worker 197*8975f5c5SAndroid Build Coastguard Worker // clang-format on 198