• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // GENERATED FILE - DO NOT EDIT.
2 // Generated by gen_proc_table.py using data from cl.xml.
3 //
4 // Copyright 2021 The ANGLE Project Authors. All rights reserved.
5 // Use of this source code is governed by a BSD-style license that can be
6 // found in the LICENSE file.
7 //
8 // proc_table:
9 //   Mapping from a string entry point name to function address.
10 //
11 
12 #include "libGLESv2/proc_table_cl.h"
13 
14 #include "libGLESv2/entry_points_cl_autogen.h"
15 
16 #include "anglebase/no_destructor.h"
17 
18 // Using fully qualified entry point identifiers to make sure that missing entry points would not
19 // pick up the global declarations of OpenCL
20 
21 #define P(FUNC) reinterpret_cast<void *>(FUNC)
22 
23 namespace cl
24 {
25 
GetProcTable()26 const ProcTable &GetProcTable()
27 {
28     static angle::base::NoDestructor<ProcTable> sProcTable(
29         {{"clGetPlatformIDs", P(::cl::clGetPlatformIDs)},
30          {"clGetPlatformInfo", P(::cl::clGetPlatformInfo)},
31          {"clGetDeviceIDs", P(::cl::clGetDeviceIDs)},
32          {"clGetDeviceInfo", P(::cl::clGetDeviceInfo)},
33          {"clCreateContext", P(::cl::clCreateContext)},
34          {"clCreateContextFromType", P(::cl::clCreateContextFromType)},
35          {"clRetainContext", P(::cl::clRetainContext)},
36          {"clReleaseContext", P(::cl::clReleaseContext)},
37          {"clGetContextInfo", P(::cl::clGetContextInfo)},
38          {"clRetainCommandQueue", P(::cl::clRetainCommandQueue)},
39          {"clReleaseCommandQueue", P(::cl::clReleaseCommandQueue)},
40          {"clGetCommandQueueInfo", P(::cl::clGetCommandQueueInfo)},
41          {"clCreateBuffer", P(::cl::clCreateBuffer)},
42          {"clRetainMemObject", P(::cl::clRetainMemObject)},
43          {"clReleaseMemObject", P(::cl::clReleaseMemObject)},
44          {"clGetSupportedImageFormats", P(::cl::clGetSupportedImageFormats)},
45          {"clGetMemObjectInfo", P(::cl::clGetMemObjectInfo)},
46          {"clGetImageInfo", P(::cl::clGetImageInfo)},
47          {"clRetainSampler", P(::cl::clRetainSampler)},
48          {"clReleaseSampler", P(::cl::clReleaseSampler)},
49          {"clGetSamplerInfo", P(::cl::clGetSamplerInfo)},
50          {"clCreateProgramWithSource", P(::cl::clCreateProgramWithSource)},
51          {"clCreateProgramWithBinary", P(::cl::clCreateProgramWithBinary)},
52          {"clRetainProgram", P(::cl::clRetainProgram)},
53          {"clReleaseProgram", P(::cl::clReleaseProgram)},
54          {"clBuildProgram", P(::cl::clBuildProgram)},
55          {"clGetProgramInfo", P(::cl::clGetProgramInfo)},
56          {"clGetProgramBuildInfo", P(::cl::clGetProgramBuildInfo)},
57          {"clCreateKernel", P(::cl::clCreateKernel)},
58          {"clCreateKernelsInProgram", P(::cl::clCreateKernelsInProgram)},
59          {"clRetainKernel", P(::cl::clRetainKernel)},
60          {"clReleaseKernel", P(::cl::clReleaseKernel)},
61          {"clSetKernelArg", P(::cl::clSetKernelArg)},
62          {"clGetKernelInfo", P(::cl::clGetKernelInfo)},
63          {"clGetKernelWorkGroupInfo", P(::cl::clGetKernelWorkGroupInfo)},
64          {"clWaitForEvents", P(::cl::clWaitForEvents)},
65          {"clGetEventInfo", P(::cl::clGetEventInfo)},
66          {"clRetainEvent", P(::cl::clRetainEvent)},
67          {"clReleaseEvent", P(::cl::clReleaseEvent)},
68          {"clGetEventProfilingInfo", P(::cl::clGetEventProfilingInfo)},
69          {"clFlush", P(::cl::clFlush)},
70          {"clFinish", P(::cl::clFinish)},
71          {"clEnqueueReadBuffer", P(::cl::clEnqueueReadBuffer)},
72          {"clEnqueueWriteBuffer", P(::cl::clEnqueueWriteBuffer)},
73          {"clEnqueueCopyBuffer", P(::cl::clEnqueueCopyBuffer)},
74          {"clEnqueueReadImage", P(::cl::clEnqueueReadImage)},
75          {"clEnqueueWriteImage", P(::cl::clEnqueueWriteImage)},
76          {"clEnqueueCopyImage", P(::cl::clEnqueueCopyImage)},
77          {"clEnqueueCopyImageToBuffer", P(::cl::clEnqueueCopyImageToBuffer)},
78          {"clEnqueueCopyBufferToImage", P(::cl::clEnqueueCopyBufferToImage)},
79          {"clEnqueueMapBuffer", P(::cl::clEnqueueMapBuffer)},
80          {"clEnqueueMapImage", P(::cl::clEnqueueMapImage)},
81          {"clEnqueueUnmapMemObject", P(::cl::clEnqueueUnmapMemObject)},
82          {"clEnqueueNDRangeKernel", P(::cl::clEnqueueNDRangeKernel)},
83          {"clEnqueueNativeKernel", P(::cl::clEnqueueNativeKernel)},
84          {"clSetCommandQueueProperty", P(::cl::clSetCommandQueueProperty)},
85          {"clCreateImage2D", P(::cl::clCreateImage2D)},
86          {"clCreateImage3D", P(::cl::clCreateImage3D)},
87          {"clEnqueueMarker", P(::cl::clEnqueueMarker)},
88          {"clEnqueueWaitForEvents", P(::cl::clEnqueueWaitForEvents)},
89          {"clEnqueueBarrier", P(::cl::clEnqueueBarrier)},
90          {"clUnloadCompiler", P(::cl::clUnloadCompiler)},
91          {"clGetExtensionFunctionAddress", P(::cl::clGetExtensionFunctionAddress)},
92          {"clCreateCommandQueue", P(::cl::clCreateCommandQueue)},
93          {"clCreateSampler", P(::cl::clCreateSampler)},
94          {"clEnqueueTask", P(::cl::clEnqueueTask)},
95          {"clCreateSubBuffer", P(::cl::clCreateSubBuffer)},
96          {"clSetMemObjectDestructorCallback", P(::cl::clSetMemObjectDestructorCallback)},
97          {"clCreateUserEvent", P(::cl::clCreateUserEvent)},
98          {"clSetUserEventStatus", P(::cl::clSetUserEventStatus)},
99          {"clSetEventCallback", P(::cl::clSetEventCallback)},
100          {"clEnqueueReadBufferRect", P(::cl::clEnqueueReadBufferRect)},
101          {"clEnqueueWriteBufferRect", P(::cl::clEnqueueWriteBufferRect)},
102          {"clEnqueueCopyBufferRect", P(::cl::clEnqueueCopyBufferRect)},
103          {"clCreateSubDevices", P(::cl::clCreateSubDevices)},
104          {"clRetainDevice", P(::cl::clRetainDevice)},
105          {"clReleaseDevice", P(::cl::clReleaseDevice)},
106          {"clCreateImage", P(::cl::clCreateImage)},
107          {"clCreateProgramWithBuiltInKernels", P(::cl::clCreateProgramWithBuiltInKernels)},
108          {"clCompileProgram", P(::cl::clCompileProgram)},
109          {"clLinkProgram", P(::cl::clLinkProgram)},
110          {"clUnloadPlatformCompiler", P(::cl::clUnloadPlatformCompiler)},
111          {"clGetKernelArgInfo", P(::cl::clGetKernelArgInfo)},
112          {"clEnqueueFillBuffer", P(::cl::clEnqueueFillBuffer)},
113          {"clEnqueueFillImage", P(::cl::clEnqueueFillImage)},
114          {"clEnqueueMigrateMemObjects", P(::cl::clEnqueueMigrateMemObjects)},
115          {"clEnqueueMarkerWithWaitList", P(::cl::clEnqueueMarkerWithWaitList)},
116          {"clEnqueueBarrierWithWaitList", P(::cl::clEnqueueBarrierWithWaitList)},
117          {"clGetExtensionFunctionAddressForPlatform",
118           P(::cl::clGetExtensionFunctionAddressForPlatform)},
119          {"clCreateCommandQueueWithProperties", P(::cl::clCreateCommandQueueWithProperties)},
120          {"clCreatePipe", P(::cl::clCreatePipe)},
121          {"clGetPipeInfo", P(::cl::clGetPipeInfo)},
122          {"clSVMAlloc", P(::cl::clSVMAlloc)},
123          {"clSVMFree", P(::cl::clSVMFree)},
124          {"clCreateSamplerWithProperties", P(::cl::clCreateSamplerWithProperties)},
125          {"clSetKernelArgSVMPointer", P(::cl::clSetKernelArgSVMPointer)},
126          {"clSetKernelExecInfo", P(::cl::clSetKernelExecInfo)},
127          {"clEnqueueSVMFree", P(::cl::clEnqueueSVMFree)},
128          {"clEnqueueSVMMemcpy", P(::cl::clEnqueueSVMMemcpy)},
129          {"clEnqueueSVMMemFill", P(::cl::clEnqueueSVMMemFill)},
130          {"clEnqueueSVMMap", P(::cl::clEnqueueSVMMap)},
131          {"clEnqueueSVMUnmap", P(::cl::clEnqueueSVMUnmap)},
132          {"clSetDefaultDeviceCommandQueue", P(::cl::clSetDefaultDeviceCommandQueue)},
133          {"clGetDeviceAndHostTimer", P(::cl::clGetDeviceAndHostTimer)},
134          {"clGetHostTimer", P(::cl::clGetHostTimer)},
135          {"clCreateProgramWithIL", P(::cl::clCreateProgramWithIL)},
136          {"clCloneKernel", P(::cl::clCloneKernel)},
137          {"clGetKernelSubGroupInfo", P(::cl::clGetKernelSubGroupInfo)},
138          {"clEnqueueSVMMigrateMem", P(::cl::clEnqueueSVMMigrateMem)},
139          {"clSetProgramSpecializationConstant", P(::cl::clSetProgramSpecializationConstant)},
140          {"clSetProgramReleaseCallback", P(::cl::clSetProgramReleaseCallback)},
141          {"clSetContextDestructorCallback", P(::cl::clSetContextDestructorCallback)},
142          {"clCreateBufferWithProperties", P(::cl::clCreateBufferWithProperties)},
143          {"clCreateImageWithProperties", P(::cl::clCreateImageWithProperties)},
144          {"clIcdGetPlatformIDsKHR", P(::cl::clIcdGetPlatformIDsKHR)}});
145     return *sProcTable;
146 }
147 
148 }  // namespace cl
149