radeonsi: add 16-bit ALU vectorization

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6622>
This commit is contained in:
Marek Olšák
2020-07-24 16:15:51 -04:00
committed by Marge Bot
parent 6702e542cf
commit 44f1b1be7a

View File

@@ -560,6 +560,9 @@ static void si_nir_opts(struct si_screen *sscreen, struct nir_shader *nir, bool
if (nir->options->max_unroll_iterations) {
NIR_PASS(progress, nir, nir_opt_loop_unroll, 0);
}
if (sscreen->info.has_packed_math_16bit)
NIR_PASS(progress, nir, nir_opt_vectorize, NULL, NULL);
} while (progress);
}