aboutsummaryrefslogtreecommitdiff
path: root/src/api/api_device.cpp
diff options
context:
space:
mode:
authorGil Pitney <gil.pitney@linaro.org>2015-09-29 21:41:17 +0000
committerGil Pitney <gil.pitney@linaro.org>2015-09-29 21:41:17 +0000
commite38928f57633b960c4d54c3678df487d964d9c7d (patch)
tree6b50ca2b45163dfcfe120a2dccd7291bdb085432 /src/api/api_device.cpp
parent5fe461416ab30b6af50a24d638b30b5a8924ffac (diff)
ICD: Update Dispatch table and add OpenCL object type conversion templates
Update the dispatch table to match the OCL 1.2 disptach table of the file ICD loader, which is available from the Khronos website: www.khronos.org/registry/cl/specs/opencl-icd-1.2.11.0 Also, define templates to enable conversion between Coal namespace internal C++ objects and OpenCL C API objects, containing the dispatch table pointer as the first pointer field, as expected by the Khronos ICD loader. This template design is based on the solution employed by Francisco Jerez in the clover state tracker of Mesa: http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/state_trackers/clover/core/object.hpp with some simplifications. For example, validation is done in shamrock using isA() methods, and not in the templates. Also conversion of lists is done simply, using for loops, rather than maps and vectors. Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
Diffstat (limited to 'src/api/api_device.cpp')
0 files changed, 0 insertions, 0 deletions