[Mesa-stable] [PATCH 1/6] clover: Return CL_BUILD_ERROR for CL_PROGRAM_BUILD_STATUS when compilation fails v2

Tom Stellard thomas.stellard at amd.com
Mon Mar 30 08:31:37 PDT 2015


v2:
  - Don't use _errs map

Cc: 10.5 10.4 <mesa-stable at lists.freedesktop.org>
---
 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 8553ca7..c07548c 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.0.4



More information about the mesa-stable mailing list