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 <>
Reviewed-by: Francisco Jerez's avatarFrancisco Jerez <>
Signed-off-by: Pierre Moreau's avatarPierre Moreau <>
Part-of: <mesa/mesa!2078>
parent a92afdea
...@@ -526,8 +526,10 @@ clGetProgramInfo(cl_program d_prog, cl_program_info param, ...@@ -526,8 +526,10 @@ clGetProgramInfo(cl_program d_prog, cl_program_info param,
break; break;
if (r_size) if (prog.il_type() != program::il_type::none)
*r_size = 0; buf.as_string() = prog.source();
else if (r_size)
*r_size = 0u;
break; break;
default: default:
throw error(CL_INVALID_VALUE); 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