clover/api: Fail if trying to build a non-executable binary
authorPierre Moreau <pierre.morrow@free.fr>
Sat, 27 Jan 2018 17:12:16 +0000 (18:12 +0100)
committerKarol Herbst <kherbst@redhat.com>
Tue, 26 Feb 2019 20:02:07 +0000 (21:02 +0100)
commitbad161c8948649eabf29cfedb1cad4247c884616
tree464d9895e02d0a0e700cb7f77abe3148ac459287
parent25d4e65eb76cda86997cd9072787f7f3790a12c6
clover/api: Fail if trying to build a non-executable binary

From the OpenCL 1.2 Specification, Section 5.6.2 (about clBuildProgram):

> If program is created with clCreateProgramWithBinary, then the
> program binary must be an executable binary (not a compiled binary or
> library).

Reviewed-by: Aaron Watry <awatry@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/program.cpp