summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/ir3
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-05-05 16:58:44 -0700
committerJason Ekstrand <[email protected]>2016-05-11 11:44:35 -0700
commit1b72c31e1f1947123d8c236b56e230f030f60cf9 (patch)
tree03ec41421f5e06d29d64af7303bc5c11084edba7 /src/gallium/drivers/freedreno/ir3
parent5886d1bad13a1c0106b7f42191bbc399fff4a0d9 (diff)
nir/algebraic: Separate ffma lowering from fusing
The i965 driver has its own pass for fusing mul+add combinations that's much smarter than what nir_opt_algebraic can do so we don't want to get the nir_opt_algebraic one just because we didn't set lower_ffma. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/ir3')
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_nir.c b/src/gallium/drivers/freedreno/ir3/ir3_nir.c
index 28cde5b25cb..d93765cdd32 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_nir.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_nir.c
@@ -45,6 +45,7 @@ ir3_tgsi_to_nir(const struct tgsi_token *tokens)
.lower_flrp32 = true,
.lower_flrp64 = true,
.lower_ffract = true,
+ .fuse_ffma = true,
.native_integers = true,
.vertex_id_zero_based = true,
.lower_extract_byte = true,