[Mesa-dev] [PATCH 2/2] clover: don't return CL_INVALID_VALUE if there is no header

EdB edb+mesa at sigluy.net
Sat Oct 11 09:01:36 PDT 2014


---
 src/gallium/state_trackers/clover/api/program.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp
index 1b9311f..e3ef8d0 100644
--- a/src/gallium/state_trackers/clover/api/program.cpp
+++ b/src/gallium/state_trackers/clover/api/program.cpp
@@ -198,7 +198,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;
-- 
1.9.3



More information about the mesa-dev mailing list