diff options
author | Francisco Jerez <[email protected]> | 2014-08-16 16:25:34 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2014-08-18 09:32:24 +0300 |
commit | e9a4e74926ab67d1750c39b49a54df6fbcb0b593 (patch) | |
tree | 47eeb79b7a4d83e9cc40deb08262e0ed28b14ef1 /src/gallium/state_trackers/clover/api | |
parent | c6817f19f60b9b87f55f67cd4dc304a5a2f32414 (diff) |
clover: Refuse to build a program if there are kernel objects attached to it.
Fixes piglit cl-api-build-program.
Tested-by: EdB <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/api')
-rw-r--r-- | src/gallium/state_trackers/clover/api/program.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp index 8d9d3ac62d5..67717353a8c 100644 --- a/src/gallium/state_trackers/clover/api/program.cpp +++ b/src/gallium/state_trackers/clover/api/program.cpp @@ -167,6 +167,9 @@ clBuildProgram(cl_program d_prog, cl_uint num_devs, }, devs)) throw error(CL_INVALID_DEVICE); + if (prog.kernel_ref_count()) + throw error(CL_INVALID_OPERATION); + prog.build(devs, opts); return CL_SUCCESS; |