i965/fs/nir: 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: 7756214 -> 7753873 (-0.03%) instructions in affected programs: 455452 -> 453111 (-0.51%) helped: 2333

7a997a3 i965/fs/nir: Optimize (gl_FrontFacing ? x : y) where x and y are ±1.0.
src/mesa/drivers/dri/i965/brw_fs.h | 3 ++
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 87 ++++++++++++++++++++++++++++++
2 files changed, 90 insertions(+)

Upstream: cgit.freedesktop.org


  • Share