From: Tom Stellard Date: Tue, 24 Mar 2015 17:17:22 +0000 (+0000) Subject: clover: Return CL_BUILD_ERROR for CL_PROGRAM_BUILD_STATUS when compilation fails v2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fda7558057a301a5a0ee1cb4d68f09ea39b03bb3;p=mesa.git 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 Reviewed-by: Francisco Jerez --- 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; }