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:

committed by
Marge Bot

parent
24d9a80247
commit
2da7ec0db9
@@ -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 =
|
||||
|
Reference in New Issue
Block a user