diff options
author | Dave Airlie <[email protected]> | 2017-10-10 13:23:40 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-10-11 07:33:32 +1000 |
commit | 80bbdb148335c55303960bab841d98f4fbd1feea (patch) | |
tree | 36552a395d19280beafd651e5e9e1a8fec4a5e7f /src/gallium | |
parent | 2c61594d84911f486aa2edb4b8e561e780139d20 (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, |