diff options
author | Dave Airlie <airlied@redhat.com> | 2021-08-11 05:04:53 +1000 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-17 22:00:49 +0000 |
commit | f452317849d9b494dbb83792ee051a473bfe2207 (patch) | |
tree | a54aacf9f3d5830f9f2ad7e64935deb998f7d351 | |
parent | f34260bbf74ec4b9c251d17314a580d1f0334810 (diff) |
clover/nir: respect lower to scalar options.
This just calls the lower alu to scalar pass like mesa/st
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15433>
-rw-r--r-- | src/gallium/frontends/clover/nir/invocation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; |