From: Dave Airlie Date: Tue, 10 Oct 2017 03:23:40 +0000 (+1000) Subject: radeonsi: lower ffma in nir to mad. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80bbdb148335c55303960bab841d98f4fbd1feea;p=mesa.git radeonsi: lower ffma in nir to mad. 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 --- 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,