diff options
author | Gil Pitney <gil.pitney@linaro.org> | 2015-09-29 21:41:17 +0000 |
---|---|---|
committer | Gil Pitney <gil.pitney@linaro.org> | 2015-09-29 21:41:17 +0000 |
commit | e38928f57633b960c4d54c3678df487d964d9c7d (patch) | |
tree | 6b50ca2b45163dfcfe120a2dccd7291bdb085432 /src/core/commandqueue.cpp | |
parent | 5fe461416ab30b6af50a24d638b30b5a8924ffac (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/core/commandqueue.cpp')
0 files changed, 0 insertions, 0 deletions