[Mesa-dev] [PATCH] clover: Call clBuildProgram() notification function when build completes
Tom Stellard
thomas.stellard at amd.com
Tue Mar 24 12:44:13 PDT 2015
Cc: 10.5 10.4 <mesa-stable at lists.freedesktop.org>
---
src/gallium/state_trackers/clover/api/program.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp
index 60184ed..fcec1d7 100644
--- a/src/gallium/state_trackers/clover/api/program.cpp
+++ b/src/gallium/state_trackers/clover/api/program.cpp
@@ -180,8 +180,12 @@ clBuildProgram(cl_program d_prog, cl_uint num_devs,
validate_build_program_common(prog, num_devs, d_devs, pfn_notify, user_data);
prog.build(devs, opts);
+ if (pfn_notify)
+ pfn_notify(d_prog, user_data);
return CL_SUCCESS;
} catch (error &e) {
+ if (pfn_notify)
+ pfn_notify(d_prog, user_data);
if (e.get() == CL_INVALID_COMPILER_OPTIONS)
return CL_INVALID_BUILD_OPTIONS;
if (e.get() == CL_COMPILE_PROGRAM_FAILURE)
--
2.0.4
More information about the mesa-dev
mailing list