From f452317849d9b494dbb83792ee051a473bfe2207 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 11 Aug 2021 05:04:53 +1000 Subject: [PATCH] clover/nir: respect lower to scalar options. This just calls the lower alu to scalar pass like mesa/st Reviewed-by: Karol Herbst Part-of: --- src/gallium/frontends/clover/nir/invocation.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/frontends/clover/nir/invocation.cpp b/src/gallium/frontends/clover/nir/invocation.cpp index f7802aa40fd..9750f7d2f49 100644 --- a/src/gallium/frontends/clover/nir/invocation.cpp +++ b/src/gallium/frontends/clover/nir/invocation.cpp @@ -501,6 +501,10 @@ binary clover::nir::spirv_to_nir(const binary &mod, const device &dev, NIR_PASS_V(nir, nir_opt_dce); NIR_PASS_V(nir, nir_lower_convert_alu_types, NULL); + if (compiler_options->lower_to_scalar) { + NIR_PASS_V(nir, nir_lower_alu_to_scalar, + compiler_options->lower_to_scalar_filter, NULL); + } NIR_PASS_V(nir, nir_lower_system_values); nir_lower_compute_system_values_options sysval_options = { 0 }; sysval_options.has_base_global_invocation_id = true;