microsoft/clc: small compile fix on Linux

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13018>
This commit is contained in:
Lionel Landwerlin 2021-09-24 11:11:22 +03:00 committed by Marge Bot
parent 8d03e5a863
commit dce8870f64
2 changed files with 8 additions and 5 deletions

View file

@ -44,6 +44,11 @@ struct clc_compile_args {
unsigned num_args;
};
struct clc_binary {
void *data;
size_t size;
};
struct clc_linker_args {
const struct clc_binary * const *in_objs;
unsigned num_in_objs;
@ -58,11 +63,6 @@ struct clc_logger {
clc_msg_callback warning;
};
struct clc_binary {
void *data;
size_t size;
};
enum clc_kernel_arg_type_qualifier {
CLC_KERNEL_ARG_TYPE_CONST = 1 << 0,
CLC_KERNEL_ARG_TYPE_RESTRICT = 1 << 1,

View file

@ -1018,6 +1018,9 @@ clc_spirv_specialize(const struct clc_binary *in_spirv,
words.resize(2);
memcpy(words.data(), &consts->specializations[i].value.u64, 8);
break;
case CLC_SPEC_CONSTANT_UNKNOWN:
assert(0);
break;
}
ASSERTED auto ret = spec_const_map.emplace(id, std::move(words));