vc4: Flip which primitives are considered front-facing.
authorEric Anholt <eric@anholt.net>
Sat, 9 Aug 2014 18:01:53 +0000 (11:01 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 21:47:54 +0000 (14:47 -0700)
This mostly fixes glxgears rendering.

src/gallium/drivers/vc4/vc4_state.c

index 69fd21877203c9da1f66b8616d4b2d006df4f95b..d2c53a5b8eb166d20d63ce51847f2f6d6d22ff5e 100644 (file)
@@ -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)