clover: Fixes use of designated initializers requires in c++ that doesn't support by MSVC

../src/gallium/frontends/clover/nir/invocation.cpp(400): error C7555: use of designated initializers requires at least '/std:c++20'

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18683>
This commit is contained in:
Yonggang Luo 2022-09-20 02:44:30 +08:00 committed by Marge Bot
parent 15cdf5bb48
commit 196d29a506

View file

@ -396,9 +396,8 @@ binary clover::nir::spirv_to_nir(const binary &mod, const device &dev,
NIR_PASS_V(nir, nir_lower_explicit_io, nir_var_mem_global,
spirv_options.global_addr_format);
struct nir_remove_dead_variables_options remove_dead_variables_options = {
.can_remove_var = can_remove_var,
};
struct nir_remove_dead_variables_options remove_dead_variables_options = {};
remove_dead_variables_options.can_remove_var = can_remove_var;
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_all, &remove_dead_variables_options);
if (compiler_options->lower_int64_options)