nir: Initialize nir_register::divergent

Fixes: c7fc44f9eb ("nir/from_ssa: Respect and populate divergence information")
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14205>
(cherry picked from commit dcc7b19cae)
This commit is contained in:
Caio Oliveira 2021-12-15 00:47:36 -08:00 committed by Eric Engestrom
parent 2198488bbb
commit 709c5d1492
2 changed files with 2 additions and 1 deletions

View file

@ -517,7 +517,7 @@
"description": "nir: Initialize nir_register::divergent",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "c7fc44f9ebbe93f7aefc010aea4e13e29d0d67fd"
},

View file

@ -154,6 +154,7 @@ reg_create(void *mem_ctx, struct exec_list *list)
reg->num_components = 0;
reg->bit_size = 32;
reg->num_array_elems = 0;
reg->divergent = false;
exec_list_push_tail(list, &reg->node);