summaryrefslogtreecommitdiff
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2020-09-24 08:46:31 -0700
committerKenneth Graunke <kenneth@whitecape.org>2020-09-24 13:11:50 -0700
commit140f53e64646668c09dd4f09d2df9c17ce5d0d5f (patch)
tree99c8edcfd0f91b91299ab8ddabb779f42935fe11 /src/panfrost/midgard
parentd8cdcd4adf7a1209da7afe47056118183e2b3529 (diff)
Revert "nir: replace lower_ffma and fuse_ffma with has_ffma"
This reverts commit 939ddf3f67de2ed1700c093e60cf95c1b72ff20b. Intel has a separate pass for fusing FFMAs selectively. We split these flags in commit 1b72c31e1f1947123d8c236b56e230f030f60cf9 and the reasoning still stands. The patch being reverted was just a cleanup, so there should be no issue with reverting it. Acked-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6849>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_compile.h b/src/panfrost/midgard/midgard_compile.h
index 1da9cffae74..fabed8bb5b2 100644
--- a/src/panfrost/midgard/midgard_compile.h
+++ b/src/panfrost/midgard/midgard_compile.h
@@ -36,6 +36,9 @@ midgard_compile_shader_nir(nir_shader *nir, panfrost_program *program, bool is_b
* solution. */
static const nir_shader_compiler_options midgard_nir_options = {
+ .lower_ffma16 = true,
+ .lower_ffma32 = true,
+ .lower_ffma64 = true,
.lower_scmp = true,
.lower_flrp16 = true,
.lower_flrp32 = true,