nir: Make gl_FrontFacing a system_value
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 14 Feb 2015 20:10:32 +0000 (12:10 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 14 Feb 2015 21:47:16 +0000 (13:47 -0800)
commitdd110cdfd878a261ad7f2114f83f86deb35aa0fb
tree79ae02aed1a925abf169fee9835c3bd09550006c
parent785b22caee28892d9d995a743de1dee5434c9ce1
nir: Make gl_FrontFacing a system_value

GLSL IR labels gl_FrontFacing as an input variable and not a system value.
This commit makes NIR silently translate gl_FrontFacing to a system value
so that it properly gets translated into a load_system_value intrinsic.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/glsl/nir/glsl_to_nir.cpp