clover: Call nir_lower_mem_constant_vars
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 2 Sep 2020 22:43:07 +0000 (17:43 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 3 Sep 2020 18:02:50 +0000 (18:02 +0000)
Fixes: 26a4c8f375e "clover/nir: Use nir_var_mem_constant for..."
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6472>

src/gallium/frontends/clover/nir/invocation.cpp

index 8ea6d3cf4d08f9b6bbe9cab4d009115e42e17d29..8cdef270d6fda6c36cd375554c34056e1991e5ce 100644 (file)
@@ -227,6 +227,8 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
          offset += glsl_get_cl_size(var->type);
       }
 
+      NIR_PASS_V(nir, nir_lower_mem_constant_vars,
+                 glsl_get_cl_type_size_align);
       NIR_PASS_V(nir, nir_lower_vars_to_explicit_types,
                  nir_var_mem_shared | nir_var_function_temp,
                  glsl_get_cl_type_size_align);