spirv: Use the system value version of gl_FrontFace
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 21 Jun 2016 06:41:11 +0000 (23:41 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 21 Jun 2016 23:45:25 +0000 (16:45 -0700)
commit295e03c980a7ff6dde77abcb6bbfa2f8d015323b
treefb58399a97a4ba69ec2a254e2974d2d2ddcb2c2a
parent40013c50333caf7a4a66204ac29695aad0d9b06d
spirv: Use the system value version of gl_FrontFace

SPIR-V treats it as an input but NIR wants the system value.  This
shouldn't have been too much of a surprise given that we have to do the
same conversion in the GLSL IR to NIR pass.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/compiler/spirv/vtn_variables.c