nir: Stop whacking gl_FrontFacing to a system value
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 31 Jul 2019 20:17:17 +0000 (15:17 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Thu, 1 Aug 2019 21:59:37 +0000 (21:59 +0000)
commit70dc017aec72b80e7fd674b90eec4332807e3619
tree9a9da01015a0584ceeab39ca011bde38ad7e342c
parent4e736b88f3bc706b065798bd2296748603070484
nir: Stop whacking gl_FrontFacing to a system value

We have a cap bit for gallium and a GLSL compiler flag to control this.
Just trust what GLSL gives us and stop forcing it.  In order for this to
be safe, we have to advertise another cap in some of the gallium
drivers.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/glsl_to_nir.cpp
src/gallium/drivers/freedreno/freedreno_screen.c
src/gallium/drivers/v3d/v3d_screen.c
src/gallium/drivers/vc4/vc4_screen.c
src/mesa/drivers/dri/i965/brw_context.c