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

Matt Turner mattst88 at gmail.com
Wed Jan 14 13:29:44 PST 2015


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?


More information about the mesa-dev mailing list