backend: refine code structure of ocl math function

Graphics / Beignet - rander [intel.com] - 17 April 2017 04:08 EDT

there are two math function files, ocl1.2 and ocl2.0. the difference is in parameters in some functions. Now mov the common functions to a file to maintain code easily

6ad6aa5 backend: refine code structure of ocl math function
backend/src/libocl/CMakeLists.txt | 2 +-
backend/src/libocl/script/ocl_math_common.def | 80 +++
backend/src/libocl/tmpl/ocl_math.tmpl.cl | 77 +++
backend/src/libocl/tmpl/ocl_math.tmpl.h | 10 +
backend/src/libocl/tmpl/ocl_math_20.tmpl.cl | 57 ++
backend/src/libocl/tmpl/ocl_math_20.tmpl.h | 7 +
backend/src/libocl/tmpl/ocl_math_common.tmpl.cl | 714 ++++++++++++++++++++++++
backend/src/libocl/tmpl/ocl_math_common.tmpl.h | 45 ++
8 files changed, 991 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share