This is specified as char[] and I don't think requires null termination,
Also we should only return IL based programs.
Fixes CTS spirv_new get_program_il
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11868>
break;
case CL_PROGRAM_IL:
- if (prog.il_type() != program::il_type::none)
- buf.as_string() = prog.source();
+ if (prog.il_type() == program::il_type::spirv)
+ buf.as_vector<char>() = prog.source();
else if (r_size)
*r_size = 0u;
break;