Reviewed-by: Karol Herbst <kher...@redhat.com> Changes since: * v3: Use the core define instead of the extension one (Karol Herbst) * v2: Switch from using a pointer attribute to a vector (Francisco Jerez)
Signed-off-by: Pierre Moreau <pierre.mor...@free.fr> --- src/gallium/state_trackers/clover/api/program.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp index 00b252e12b4..9ad7297da57 100644 --- a/src/gallium/state_trackers/clover/api/program.cpp +++ b/src/gallium/state_trackers/clover/api/program.cpp @@ -424,6 +424,13 @@ clGetProgramInfo(cl_program d_prog, cl_program_info param, buf.as_string() = prog.source(); break; + case CL_PROGRAM_IL: + if (prog.has_il) + buf.as_vector<char>() = prog.il(); + else if (r_size) + *r_size = 0u; + break; + case CL_PROGRAM_BINARY_SIZES: buf.as_vector<size_t>() = map([&](const device &dev) { return prog.build(dev).binary.size(); -- 2.20.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev