diff options
author | EdB <[email protected]> | 2014-11-07 10:30:40 +0100 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-12-02 11:05:03 -0500 |
commit | 745b1f550339b3adbf272a28b9d0c767a86ff2fb (patch) | |
tree | b4dde0ad5c2d0d1327662481022e2afd3315bf72 /src/gallium/state_trackers/clover/api | |
parent | 29c7cf2b2ba850cf467167548d53383e1338fd5c (diff) |
clover: clCompileProgram CL_INVALID_COMPILER_OPTIONS
clCompileProgram should return CL_INVALID_COMPILER_OPTIONS
instead of CL_INVALID_BUILD_OPTIONS
Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/api')
-rw-r--r-- | src/gallium/state_trackers/clover/api/program.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp index 3a6c0546153..60184ed10b8 100644 --- a/src/gallium/state_trackers/clover/api/program.cpp +++ b/src/gallium/state_trackers/clover/api/program.cpp @@ -182,6 +182,8 @@ clBuildProgram(cl_program d_prog, cl_uint num_devs, prog.build(devs, opts); return CL_SUCCESS; } catch (error &e) { + if (e.get() == CL_INVALID_COMPILER_OPTIONS) + return CL_INVALID_BUILD_OPTIONS; if (e.get() == CL_COMPILE_PROGRAM_FAILURE) return CL_BUILD_PROGRAM_FAILURE; return e.get(); |