path: root/src/panfrost/midgard
diff options
authorErico Nunes <>2020-08-30 15:07:23 +0200
committerMarge Bot <>2021-01-11 13:13:30 +0000
commitfaaba0d6afe0c5f6985345c7c6226435658d196a (patch)
tree1fad654e6ebabb28b3ce44af24d9a717a1923da6 /src/panfrost/midgard
parentb75d8052a7767af86d7abf85fca3db371f05d362 (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 <> Reviewed-by: Jason Ekstrand <> Reviewed-by: Eric Anholt <> Acked-by: Alyssa Rosenzweig <> Part-of: <>
Diffstat (limited to 'src/panfrost/midgard')
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);