Module: Mesa
Branch: master
Commit: ad259482610048e0e3cc8fc0cacd4581f1256b5d
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad259482610048e0e3cc8fc0cacd4581f1256b5d

Author: Rob Clark <[email protected]>
Date:   Fri Mar  8 18:42:22 2019 -0500

freedreno/ir3: turn on [iu]mul_high

Which also requires uadd_carry lowering

Until recently this was lowered in glsl ir so it went unnoticed that we
weren't lowering it.

Fixes: 1d8994a63b5 glsl: [u/i]mulExtended optimization for GLSL
Signed-off-by: Rob Clark <[email protected]>

---

 src/freedreno/ir3/ir3_nir.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c
index 4f5fe5dfd65..57595e00306 100644
--- a/src/freedreno/ir3/ir3_nir.c
+++ b/src/freedreno/ir3/ir3_nir.c
@@ -42,6 +42,8 @@ static const nir_shader_compiler_options options = {
                .lower_fdiv = true,
                .lower_isign = true,
                .lower_ldexp = true,
+               .lower_uadd_carry = true,
+               .lower_mul_high = true,
                .fuse_ffma = true,
                .native_integers = true,
                .vertex_id_zero_based = true,
@@ -63,6 +65,8 @@ static const nir_shader_compiler_options options_a6xx = {
                .lower_fdiv = true,
                .lower_isign = true,
                .lower_ldexp = true,
+               .lower_uadd_carry = true,
+               .lower_mul_high = true,
                .fuse_ffma = true,
                .native_integers = true,
                .vertex_id_zero_based = false,

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to