nir: Move zero_initialize_shared_memory into common shader_info

Move it out the "cs" sub-struct, since the bit will be used for other
shader stages in the future.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11225>
This commit is contained in:
Caio Marcelo de Oliveira Filho
2021-05-05 09:34:46 -07:00
parent 7b13c1461d
commit b5f6fc442c
4 changed files with 8 additions and 5 deletions

View File

@@ -1960,7 +1960,7 @@ vtn_create_variable(struct vtn_builder *b, struct vtn_value *val,
"as initializer, but have %u instead",
vtn_id_for_value(b, val),
vtn_id_for_value(b, initializer));
b->shader->info.cs.zero_initialize_shared_memory = true;
b->shader->info.zero_initialize_shared_memory = true;
break;
case SpvStorageClassUniformConstant: