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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user