[Mesa-dev] [PATCH 2/2] radeonsi: lower ffma in nir to mad.
Marek Olšák
maraeo at gmail.com
Tue Oct 10 12:31:25 UTC 2017
For the series:
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Oct 10, 2017 1:56 PM, "Nicolai Hähnle" <nhaehnle at gmail.com> wrote:
> 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.
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171010/04f9bde3/attachment.html>
More information about the mesa-dev
mailing list