nv50/ir/nir: don't use designated initializers

This is a C++20 feature...

Fixes: 8850a63161 ("radv/aco,nir/lower_subgroups: don't lower elect")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3693
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Tested-by: Andrew Randrianasulu <randrianasulu@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7338>
This commit is contained in:
Karol Herbst 2020-10-27 13:51:47 +01:00 committed by Marge Bot
parent e07c546763
commit 25f984812b

View file

@ -3111,11 +3111,10 @@ Converter::run()
if (prog->dbgFlags & NV50_IR_DEBUG_VERBOSE)
nir_print_shader(nir, stderr);
struct nir_lower_subgroups_options subgroup_options = {
.subgroup_size = 32,
.ballot_bit_size = 32,
.lower_elect = true,
};
struct nir_lower_subgroups_options subgroup_options = {};
subgroup_options.subgroup_size = 32;
subgroup_options.ballot_bit_size = 32;
subgroup_options.lower_elect = true;
/* prepare for IO lowering */
NIR_PASS_V(nir, nir_opt_deref);