From bcfeead5f31d29ae6ba3e78ce5186c0481d235b5 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 2 Sep 2020 17:43:07 -0500 Subject: [PATCH] clover: Call nir_lower_mem_constant_vars Fixes: 26a4c8f375e "clover/nir: Use nir_var_mem_constant for..." Reviewed-by: Karol Herbst Part-of: --- src/gallium/frontends/clover/nir/invocation.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2