commit | 44f1b1be7a3c8859a1fe41d1e899195a651a1f4e | [log] [tgz] |
---|---|---|
author | Marek Olšák <marek.olsak@amd.com> | Fri Jul 24 16:15:51 2020 -0400 |
committer | Marge Bot <eric+marge@anholt.net> | Tue Sep 22 02:44:53 2020 +0000 |
tree | 7fd1604387fc38fe16e27029e03405021d1ceea6 | |
parent | 6702e542cf1df4de65c4329731fe8c461c321e48 [diff] |
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>
diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 171c2b3..66fca2b 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c
@@ -560,6 +560,9 @@ 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); }