Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23685>
CLC_SPIRV_VERSION_1_4,
};
-// IMPORTANT: this struct is used for hashing and must not contain any padding.
struct clc_optional_features {
bool fp16;
bool fp64;
const struct clc_compile_args *args,
const struct clc_logger *logger)
{
+ static_assert(std::has_unique_object_representations<clc_optional_features>(),
+ "no padding allowed inside clc_optional_features");
+
std::string diag_log_str;
raw_string_ostream diag_log_stream { diag_log_str };