nir: Do not reset shared_size in nir_lower_io.

I'd like to use raw shared intrinsics already for some raytracing
stuff before this pass gets called and this was a real pitfall.

This mirrors scratch_size and constant_data_size.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10094>
This commit is contained in:
Bas Nieuwenhuizen 2021-04-08 00:53:52 +02:00 committed by Marge Bot
parent 4ca4de50f7
commit edb89e7c4d
1 changed files with 1 additions and 1 deletions

View File

@ -2249,7 +2249,7 @@ lower_vars_to_explicit(nir_shader *shader,
offset = shader->scratch_size;
break;
case nir_var_mem_shared:
offset = 0;
offset = shader->info.shared_size;
break;
case nir_var_mem_constant:
offset = shader->constant_data_size;