aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_shader.h
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-09-11 13:42:43 -0400
committerJonathan Marek <[email protected]>2019-09-28 00:33:33 -0400
commit7da15bdd2d05cc252b28cf385bf2cf2b31aa576b (patch)
tree90f7ef7bddba433b3207c5c9a310314738c66988 /src/gallium/drivers/etnaviv/etnaviv_shader.h
parent931fc2a7b3f98c348ed24292d0e85b51ba1b1543 (diff)
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 <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_shader.h')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_shader.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_shader.h b/src/gallium/drivers/etnaviv/etnaviv_shader.h
index 3c5b6e65d94..528603a55a9 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_shader.h
+++ b/src/gallium/drivers/etnaviv/etnaviv_shader.h
@@ -43,6 +43,8 @@ struct etna_shader_key
/* do we need to swap rb in frag color? */
unsigned frag_rb_swap : 1;
+ /* do we need to invert front facing value? */
+ unsigned front_ccw : 1;
};
uint32_t global;
};