1. return CL_INVALID_LINKER_OPTIONS when invalid options, using clang to check the options. 2. return CL_INVALID_OPERATION when the binary type is not same. 3. When link fail, will not return CL_LINK_PROGRAM_FAILURE, fix it. 4. Should not delete program in genProgramBuildFromLLVM, the program is new and delete from runtime.
d6a5dfe Fix piglit clLinkProgram fail.
backend/src/backend/gen_program.cpp | 5 ++--
backend/src/backend/program.cpp | 47 +++++++++++++++++++++++++++++++++--
backend/src/backend/program.h | 10 ++++++--
src/cl_api.c | 1 +
src/cl_gbe_loader.cpp | 5 ++++
src/cl_gbe_loader.h | 1 +
src/cl_program.c | 20 ++++++++++++---
7 files changed, 80 insertions(+), 9 deletions(-)
Upstream: cgit.freedesktop.org