Use of designated initializers requires at least '/std:c++20', and
mesa is using c++14 by default.
Fixes:
8d3a3e7a00b ("microsoft/compiler: Use textures for SRVs")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13912>
NIR_PASS_V(nir, dxil_nir_split_typed_samplers);
NIR_PASS_V(nir, nir_opt_dce);
- struct nir_remove_dead_variables_options dead_var_opts = { .can_remove_var = can_remove_dead_sampler };
+ struct nir_remove_dead_variables_options dead_var_opts = {};
+ dead_var_opts.can_remove_var = can_remove_dead_sampler;
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_uniform, &dead_var_opts);
if (key->samples_int_textures)