i965/fs/nir: Optimize (gl_FrontFacing ? x : y) where x and y are ±1.0.
authorMatt Turner <mattst88@gmail.com>
Sun, 15 Feb 2015 21:45:04 +0000 (13:45 -0800)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Feb 2015 22:08:04 +0000 (14:08 -0800)
commit7a997a386375a98b70ae5e1d880c8d47f236de8d
tree2ff9aa55ca9818631c5a011777515d65e38fe50a
parentc750ecaa1265c3f77d52e69697006cc5ecc3d6dd
i965/fs/nir: Optimize (gl_FrontFacing ? x : y) where x and y are ±1.0.

total instructions in shared programs: 7756214 -> 7753873 (-0.03%)
instructions in affected programs:     455452 -> 453111 (-0.51%)
helped:                                2333

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp