intel/clc: assert when libclc shader is not found

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7483
Reviewed-by: Luis Felipe Strano Moraes <luis.strano@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19091>
This commit is contained in:
Lionel Landwerlin
2022-10-15 23:02:31 +03:00
committed by Marge Bot
parent 24d9a80247
commit 2da7ec0db9

View File

@@ -299,6 +299,11 @@ brw_kernel_from_spirv(struct brw_compiler *compiler,
spirv_options.clc_shader = load_clc_shader(compiler, disk_cache,
nir_options, &spirv_options);
if (spirv_options.clc_shader == NULL) {
fprintf(stderr, "ERROR: libclc shader missing."
" Consider installing the libclc package\n");
abort();
}
assert(spirv_size % 4 == 0);
nir_shader *nir =