[Mesa-dev] [PATCH 2/2] radeonsi: lower ffma in nir to mad.

Nicolai Hähnle nhaehnle at gmail.com
Tue Oct 10 11:55:43 UTC 2017


Both patches:

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 10.10.2017 05:25, Dave Airlie wrote:
> From: Dave Airlie <airlied at redhat.com>
> 
> 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.
> 
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>   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 4384987..b02247d 100644
> --- a/src/gallium/drivers/radeonsi/si_pipe.c
> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
> @@ -794,6 +794,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,
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list