Re: [Mesa-dev] [PATCH 05/16] nir: combine fmul and fadd across ffma operations

2019-01-02 Thread Rob Clark
On Wed, Jan 2, 2019 at 5:19 PM Ian Romanick wrote: > > On 12/19/18 8:39 AM, Jonathan Marek wrote: > > This works by moving the fadd up across the ffma operations, so that it > > can eventually can be combined with a fmul. I'm not sure it works in all > > cases, but it works in all the common cases

Re: [Mesa-dev] [PATCH 05/16] nir: combine fmul and fadd across ffma operations

2019-01-02 Thread Ian Romanick
On 12/19/18 8:39 AM, Jonathan Marek wrote: > This works by moving the fadd up across the ffma operations, so that it > can eventually can be combined with a fmul. I'm not sure it works in all > cases, but it works in all the common cases. > > This will only affect freedreno since it is the only dr

[Mesa-dev] [PATCH 05/16] nir: combine fmul and fadd across ffma operations

2018-12-19 Thread Jonathan Marek
This works by moving the fadd up across the ffma operations, so that it can eventually can be combined with a fmul. I'm not sure it works in all cases, but it works in all the common cases. This will only affect freedreno since it is the only driver using the fuse_ffma option. Example: matrix