clover: Return CL_BUILD_ERROR for CL_PROGRAM_BUILD_STATUS when compilation fails v2
authorTom Stellard <thomas.stellard@amd.com>
Tue, 24 Mar 2015 17:17:22 +0000 (17:17 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 31 Mar 2015 15:40:51 +0000 (15:40 +0000)
v2:
  - Don't use _errs map

Cc: 10.5 10.4 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/core/program.cpp

index 8553ca7ec96c37104597ce2c7372e1787e89f100..c07548c8f628abedc7ce8a51a330edd0e7555461 100644 (file)
@@ -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;
 }