From 602a3f92d4d695e116794597db81623a8fd4c653 Mon Sep 17 00:00:00 2001
From: Eric Anholt <eric@anholt.net>
Date: Sat, 9 Aug 2014 11:01:53 -0700
Subject: vc4: Flip which primitives are considered front-facing.

This mostly fixes glxgears rendering.
---
 src/gallium/drivers/vc4/vc4_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/gallium/drivers/vc4/vc4_state.c b/src/gallium/drivers/vc4/vc4_state.c
index 69fd2187720..d2c53a5b8eb 100644
--- a/src/gallium/drivers/vc4/vc4_state.c
+++ b/src/gallium/drivers/vc4/vc4_state.c
@@ -101,7 +101,7 @@ vc4_create_rasterizer_state(struct pipe_context *pctx,
         /* XXX: per_vertex */
         so->point_size = cso->point_size;
 
-        if (!cso->front_ccw)
+        if (cso->front_ccw)
                 so->config_bits[0] |= VC4_CONFIG_BITS_CW_PRIMITIVES;
 
         if (cso->offset_tri)
-- 
cgit v1.2.3