[Mesa-dev] [PATCH 3/4] i965/fs: Optimize (gl_FrontFacing ? x : y) where x and y are ±1.0.

Ian Romanick idr at freedesktop.org
Wed Jan 14 19:41:31 PST 2015


On 01/15/2015 10:29 AM, Matt Turner wrote:
> On Wed, Jan 14, 2015 at 1:05 PM, Ian Romanick <idr at freedesktop.org> wrote:
>> On 01/09/2015 07:59 PM, Matt Turner wrote:
>>> total instructions in shared programs: 5886767 -> 5881642 (-0.09%)
>>> instructions in affected programs:     532199 -> 527074 (-0.96%)
>>> GAINED:                                9
>>> LOST:                                  6
>>
>> I'll did out the rest of the data later, but... I had a more general
>> implementation of this in my bool-optimizations branch.
> 
> The
> 
>> glsl: Optimize certain if-statements to just casts from the condition
>> i965/fs: Emit smarter code for b2f
> 
> patches seem like good ideas. Presumably there's a reason you didn't
> send them out in the last five months?

There were regressions on a couple of the patches that I never resolved,
and I kept getting distracted to work on other things.  I'm not 100%
sure that my fd.o tree has the latest bits... I was working on this a
bit more around Christmas... but I kept having the "just one more thing"
problem.

We should sit down and come up with a plan next week while I'm back
(briefly) in town... unless you have some brilliant revelations before then.


More information about the mesa-dev mailing list