summaryrefslogtreecommitdiffstats
path: root/src/freedreno/ir3/ir3_nir.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2019-02-06 13:32:21 -0800
committerEric Anholt <[email protected]>2019-02-14 00:32:30 +0000
commit338d399fd01caec7f558bb469517baa318410e06 (patch)
tree8600db195bf03fe2578b622071714c6949fd416a /src/freedreno/ir3/ir3_nir.c
parent8f3694e1abfd702730014253af327060ac03aca1 (diff)
freedreno: Use the NIR lowering for isign.
I think this will save an instruction and hopefully not increase any other costs (possibly the immediate -1 and 1?), but I haven't actually tested. Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/freedreno/ir3/ir3_nir.c')
-rw-r--r--src/freedreno/ir3/ir3_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_nir.c b/src/freedreno/ir3/ir3_nir.c
index d9fcf798b3d..5c568bd75c7 100644
--- a/src/freedreno/ir3/ir3_nir.c
+++ b/src/freedreno/ir3/ir3_nir.c
@@ -40,6 +40,7 @@ static const nir_shader_compiler_options options = {
.lower_fmod32 = true,
.lower_fmod64 = true,
.lower_fdiv = true,
+ .lower_isign = true,
.lower_ldexp = true,
.fuse_ffma = true,
.native_integers = true,