clover/nir: Call vars_to_explicit_types for shared memory
[mesa.git] / src / gallium / frontends / clover / nir / invocation.cpp
index 36ee8c9a2eaf7bee776e3691af071b4a399a8a88..1faf8a6eb218bdf579429dabd3ab7d8036f1a753 100644 (file)
@@ -145,6 +145,9 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
       NIR_PASS_V(nir, nir_lower_vars_to_ssa);
       NIR_PASS_V(nir, nir_opt_dce);
 
+      NIR_PASS_V(nir, nir_lower_vars_to_explicit_types, nir_var_mem_shared,
+                 glsl_get_cl_type_size_align);
+
       /* use offsets for shader_in and shared memory */
       nir_variable_mode modes = (nir_variable_mode)(
          nir_var_shader_in |