[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
Thu Jan 15 16:27:41 PST 2015


On Thu, Jan 8, 2015 at 10:59 PM, Matt Turner <mattst88 at gmail.com> wrote:
> total instructions in shared programs: 5886767 -> 5881642 (-0.09%)
> instructions in affected programs:     532199 -> 527074 (-0.96%)
> GAINED:                                9
> LOST:                                  6
> ---

On top of Ian's if-to-bool-cast patch, the results are:

total instructions in shared programs: 5931034 -> 5925587 (-0.09%)
instructions in affected programs:     598647 -> 593200 (-0.91%)
GAINED:                                8
LOST:                                  2


More information about the mesa-dev mailing list