From 80bbdb148335c55303960bab841d98f4fbd1feea Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 10 Oct 2017 13:23:40 +1000 Subject: radeonsi: lower ffma in nir to mad. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This lowers ffma to a * b + c. This seems like it should keep Marek happiest, so we'd never get to the fma instruction emission code. Reviewed-by: Nicolai Hähnle Reviewed-by: Marek Olšák Signed-off-by: Dave Airlie --- src/gallium/drivers/radeonsi/si_pipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 82ed3d7b527..5b5f83aae10 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -795,6 +795,7 @@ static const struct nir_shader_compiler_options nir_options = { .lower_fsat = true, .lower_fdiv = true, .lower_sub = true, + .lower_ffma = true, .lower_pack_snorm_2x16 = true, .lower_pack_snorm_4x8 = true, .lower_pack_unorm_2x16 = true, -- cgit v1.2.3