freedreno/a5xx: fix cull state
authorRob Clark <robdclark@gmail.com>
Wed, 11 Jan 2017 16:31:40 +0000 (11:31 -0500)
committerRob Clark <robdclark@gmail.com>
Sun, 22 Jan 2017 19:10:28 +0000 (14:10 -0500)
Signed-off-by: Rob Clark <robdclark@gmail.com>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c

index 6741852f31bc7fc2fe129cf18fcfb96a0e4fce9b..822cbb9ee69b2788d9a4f21bd2e70959a07964a1 100644 (file)
@@ -76,11 +76,11 @@ fd5_rasterizer_state_create(struct pipe_context *pctx,
 //     if (cso->fill_front != PIPE_POLYGON_MODE_FILL ||
 //             cso->fill_back != PIPE_POLYGON_MODE_FILL)
 //             so->pc_prim_vtx_cntl2 |= A5XX_PC_PRIM_VTX_CNTL2_POLYMODE_ENABLE;
-//
-//     if (cso->cull_face & PIPE_FACE_FRONT)
-//             so->gras_su_cntl |= A5XX_GRAS_SU_CNTL_CULL_FRONT;
-//     if (cso->cull_face & PIPE_FACE_BACK)
-//             so->gras_su_cntl |= A5XX_GRAS_SU_CNTL_CULL_BACK;
+
+       if (cso->cull_face & PIPE_FACE_FRONT)
+               so->gras_su_cntl |= A5XX_GRAS_SU_CNTL_CULL_FRONT;
+       if (cso->cull_face & PIPE_FACE_BACK)
+               so->gras_su_cntl |= A5XX_GRAS_SU_CNTL_CULL_BACK;
        if (!cso->front_ccw)
                so->gras_su_cntl |= A5XX_GRAS_SU_CNTL_FRONT_CW;
 //     if (!cso->flatshade_first)