Re: [Mesa-dev] [RFC 2/2] i965: switch fmul to increase chance of optimising it away

2016-12-30 Thread Jason Ekstrand
On Dec 30, 2016 9:57 PM, "Timothy Arceri" wrote: On Fri, 2016-12-30 at 19:23 -0800, Jason Ekstrand wrote: > On Dec 30, 2016 3:50 AM, "Timothy Arceri" om> wrote: > If one of the inputs to the multiplcation in ffma is the result of > an fmul there is a chance that we can reuse the result of that >

Re: [Mesa-dev] [RFC 2/2] i965: switch fmul to increase chance of optimising it away

2016-12-30 Thread Timothy Arceri
On Fri, 2016-12-30 at 19:23 -0800, Jason Ekstrand wrote: > On Dec 30, 2016 3:50 AM, "Timothy Arceri" om> wrote: > If one of the inputs to the multiplcation in ffma is the result of > an fmul there is a chance that we can reuse the result of that > fmul in other ffma calls if we do the multiplicati

Re: [Mesa-dev] [RFC 2/2] i965: switch fmul to increase chance of optimising it away

2016-12-30 Thread Jason Ekstrand
On Dec 30, 2016 3:50 AM, "Timothy Arceri" wrote: If one of the inputs to the multiplcation in ffma is the result of an fmul there is a chance that we can reuse the result of that fmul in other ffma calls if we do the multiplication in the right order. For example it is a fairly common pattern fo

[Mesa-dev] [RFC 2/2] i965: switch fmul to increase chance of optimising it away

2016-12-30 Thread Timothy Arceri
If one of the inputs to the multiplcation in ffma is the result of an fmul there is a chance that we can reuse the result of that fmul in other ffma calls if we do the multiplication in the right order. For example it is a fairly common pattern for shaders to do something similar to this: const