diff options
author | Erico Nunes <nunes.erico@gmail.com> | 2020-08-30 15:07:23 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-01-11 13:13:30 +0000 |
commit | faaba0d6afe0c5f6985345c7c6226435658d196a (patch) | |
tree | 1fad654e6ebabb28b3ce44af24d9a717a1923da6 /src/panfrost/midgard | |
parent | b75d8052a7767af86d7abf85fca3db371f05d362 (diff) |
nir/lower_vec_to_movs: don't vectorize unsupports ops
If the instruction being coalesced would be vectorized but the target
doesn't support vectorizing that op, skip coalescing.
Reuse the callbacks from alu_to_scalar to describe which ops should not
be vectorized.
Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Acked-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6506>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/midgard_compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 631aae293b0..253cdedc53f 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -348,7 +348,7 @@ optimise_nir(nir_shader *nir, unsigned quirks, bool is_blend) /* We are a vector architecture; write combine where possible */ NIR_PASS(progress, nir, nir_move_vec_src_uses_to_dest); - NIR_PASS(progress, nir, nir_lower_vec_to_movs); + NIR_PASS(progress, nir, nir_lower_vec_to_movs, NULL, NULL); NIR_PASS(progress, nir, nir_opt_dce); } |