mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 23:40:10 +01:00
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:
parent
e07c546763
commit
25f984812b
1 changed files with 4 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue