From: EdB Date: Sat, 11 Oct 2014 16:01:36 +0000 (+0200) Subject: clover: Don't return CL_INVALID_VALUE if there is no header. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01d94193ac34239cc96e3f4aab7df0e37a82eb31;p=mesa.git clover: Don't return CL_INVALID_VALUE if there is no header. Reviewed-by: Francisco Jerez --- diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp index 342915be1e2..a8a6291806e 100644 --- a/src/gallium/state_trackers/clover/api/program.cpp +++ b/src/gallium/state_trackers/clover/api/program.cpp @@ -197,7 +197,7 @@ clCompileProgram(cl_program d_prog, cl_uint num_devs, name, header.source())); }, range(header_names, num_headers), - objs(d_header_progs, num_headers)); + objs(d_header_progs, num_headers)); prog.build(devs, opts, headers); return CL_SUCCESS;