clover: Don't return CL_INVALID_VALUE if there is no header.
authorEdB <edb+mesa@sigluy.net>
Sat, 11 Oct 2014 16:01:36 +0000 (18:01 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 20 Oct 2014 07:35:10 +0000 (10:35 +0300)
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/api/program.cpp

index 342915be1e206d7b6fdf112ac642792ac0aa932f..a8a6291806e6cee983535760e1871e7f7f9e4142 100644 (file)
@@ -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<allow_empty_tag>(d_header_progs, num_headers));
 
    prog.build(devs, opts, headers);
    return CL_SUCCESS;