summaryrefslogtreecommitdiff
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2020-09-16 21:48:18 -0400
committerMarge Bot <eric+marge@anholt.net>2020-09-24 12:29:11 +0000
commit771aad30276397d6388c147b93c9e298fe30b72b (patch)
tree6969ec76bf633e7b7d3b346b3281fa098d8a0e86 /src/panfrost/midgard
parent21174dedec43df155309653764d76b4acd4d5f86 (diff)
nir: split lower_ffma into lower_ffma16/32/64
AMD wants different behavior for each bit size Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6756>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_compile.h b/src/panfrost/midgard/midgard_compile.h
index 850e72641e7..fabed8bb5b2 100644
--- a/src/panfrost/midgard/midgard_compile.h
+++ b/src/panfrost/midgard/midgard_compile.h
@@ -36,7 +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_ffma = true,
+ .lower_ffma16 = true,
+ .lower_ffma32 = true,
+ .lower_ffma64 = true,
.lower_scmp = true,
.lower_flrp16 = true,
.lower_flrp32 = true,