etnaviv: nir: fix gl_FrontFacing
authorJonathan Marek <jonathan@marek.ca>
Wed, 11 Sep 2019 17:42:43 +0000 (13:42 -0400)
committerJonathan Marek <jonathan@marek.ca>
Sat, 28 Sep 2019 04:33:33 +0000 (00:33 -0400)
commit7da15bdd2d05cc252b28cf385bf2cf2b31aa576b
tree90f7ef7bddba433b3207c5c9a310314738c66988
parent931fc2a7b3f98c348ed24292d0e85b51ba1b1543
etnaviv: nir: fix gl_FrontFacing

Only invert front facing when glFrontFace is GL_CW.

Fixes following deqp test:
dEQP-GLES2.functional.shaders.builtin_variable.frontfacing

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c
src/gallium/drivers/etnaviv/etnaviv_context.c
src/gallium/drivers/etnaviv/etnaviv_shader.h