[Mesa-dev] [PATCH v5 18/21] clover: Handle CL_PROGRAM_IL in clGetProgramInfo
Karol Herbst
kherbst at redhat.com
Mon Mar 26 15:33:38 UTC 2018
Reviewed-by: Karol Herbst <kherbst at redhat.com>
On Sun, Mar 25, 2018 at 8:02 PM, Pierre Moreau <pierre.morrow at free.fr> wrote:
> Signed-off-by: Pierre Moreau <pierre.morrow at 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 3c7e56efb9..851a212b99 100644
> --- a/src/gallium/state_trackers/clover/api/program.cpp
> +++ b/src/gallium/state_trackers/clover/api/program.cpp
> @@ -429,6 +429,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.16.3
>
More information about the mesa-dev
mailing list