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

Francisco Jerez currojerez at riseup.net
Tue Mar 31 07:28:36 PDT 2015


Tom Stellard <thomas.stellard at amd.com> writes:

> v2:
>   - Don't use _errs map
>
> Cc: 10.5 10.4 <mesa-stable at lists.freedesktop.org>

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

> ---
>  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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 212 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-stable/attachments/20150331/70f938ee/attachment.sig>


More information about the mesa-stable mailing list