freedreno/ir3: turn on [iu]mul_high
authorRob Clark <robdclark@gmail.com>
Fri, 8 Mar 2019 23:42:22 +0000 (18:42 -0500)
committerRob Clark <robdclark@gmail.com>
Fri, 8 Mar 2019 23:44:57 +0000 (18:44 -0500)
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 <robdclark@gmail.com>
src/freedreno/ir3/ir3_nir.c

index 4f5fe5dfd6510d512f5083579cc08aec47191c7e..57595e003065be176e3b0f9b78a46e2c06a5b1eb 100644 (file)
@@ -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,