summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2015-03-24 17:17:22 +0000
committerTom Stellard <[email protected]>2015-03-31 15:40:51 +0000
commitfda7558057a301a5a0ee1cb4d68f09ea39b03bb3 (patch)
tree555b388cefebbf395d307eaf3d6c4f520680c3cf /src
parent4c53d2acbb8b6fa48e91d7edaa81d95e19c2c40d (diff)
clover: Return CL_BUILD_ERROR for CL_PROGRAM_BUILD_STATUS when compilation fails v2
v2: - Don't use _errs map Cc: 10.5 10.4 <[email protected]> Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/clover/core/program.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/core/program.cpp b/src/gallium/state_trackers/clover/core/program.cpp
index 8553ca7ec96..c07548c8f62 100644
--- a/src/gallium/state_trackers/clover/core/program.cpp
+++ b/src/gallium/state_trackers/clover/core/program.cpp
@@ -90,6 +90,8 @@ cl_build_status
program::build_status(const device &dev) const {
if (_binaries.count(&dev))
return CL_BUILD_SUCCESS;
+ else if (_logs.count(&dev))
+ return CL_BUILD_ERROR;
else
return CL_BUILD_NONE;
}