mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 08:30:10 +01:00
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:
parent
15cdf5bb48
commit
196d29a506
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue