i965/fs: Optimize (gl_FrontFacing ? x : y) where x and y are ±1.0.

Graphics / Mesa 3D Graphics Library / Mesa - Matt Turner [gmail.com] - 24 February 2015 16:08 UTC

total instructions in shared programs: 5695356 -> 5689775 (-0.10%) instructions in affected programs: 486231 -> 480650 (-1.15%) helped: 2604 LOST: 1

467077b i965/fs: Optimize (gl_FrontFacing ? x : y) where x and y are ±1.0.
src/mesa/drivers/dri/i965/brw_fs.h | 1 +
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 94 ++++++++++++++++++++++++++
2 files changed, 95 insertions(+)

Upstream: cgit.freedesktop.org


  • Share