From fda7558057a301a5a0ee1cb4d68f09ea39b03bb3 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 24 Mar 2015 17:17:22 +0000 Subject: [PATCH] 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 --- src/gallium/state_trackers/clover/core/program.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2