summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe
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/gallium/drivers/llvmpipe
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/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 6ab9dd939e7..218d80e5c48 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -549,6 +549,9 @@ static const struct nir_shader_compiler_options gallivm_nir_options = {
.lower_bitfield_insert_to_shifts = true,
.lower_bitfield_extract_to_shifts = true,
.lower_sub = true,
+ .lower_ffma16 = true,
+ .lower_ffma32 = true,
+ .lower_ffma64 = true,
.lower_fmod = true,
.lower_hadd = true,
.lower_add_sat = true,