From: Jason Ekstrand Date: Wed, 2 Sep 2020 22:43:07 +0000 (-0500) Subject: clover: Call nir_lower_mem_constant_vars X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bcfeead5f31d29ae6ba3e78ce5186c0481d235b5;p=mesa.git clover: Call nir_lower_mem_constant_vars Fixes: 26a4c8f375e "clover/nir: Use nir_var_mem_constant for..." Reviewed-by: Karol Herbst Part-of: --- diff --git a/src/gallium/frontends/clover/nir/invocation.cpp b/src/gallium/frontends/clover/nir/invocation.cpp index 8ea6d3cf4d0..8cdef270d6f 100644 --- a/src/gallium/frontends/clover/nir/invocation.cpp +++ b/src/gallium/frontends/clover/nir/invocation.cpp @@ -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);