Commit 4028911c authored by Pierre Moreau's avatar Pierre Moreau
Browse files

clover: Handle CL_PROGRAM_IL in clGetProgramInfo


Reviewed-by: Karol Herbst's avatarKarol Herbst <kherbst@redhat.com>
Reviewed-by: Francisco Jerez's avatarFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: Pierre Moreau's avatarPierre Moreau <dev@pmoreau.org>
Part-of: <mesa/mesa!2078>
parent a92afdea
......@@ -526,8 +526,10 @@ clGetProgramInfo(cl_program d_prog, cl_program_info param,
break;
case CL_PROGRAM_IL:
if (r_size)
*r_size = 0;
if (prog.il_type() != program::il_type::none)
buf.as_string() = prog.source();
else if (r_size)
*r_size = 0u;
break;
default:
throw error(CL_INVALID_VALUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment