summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2017-01-11 11:31:40 -0500
committerRob Clark <robdclark@gmail.com>2017-01-22 14:10:28 -0500
commit4d9aa4f67d6316feea93901bf29b76a68c4333cd (patch)
treec9ef4df3aa81589d04096ded34945202b83b2e0c
parent4c39458460075f6c1ea9e4607769513b96c6dd82 (diff)
freedreno/a5xx: fix cull state
Signed-off-by: Rob Clark <robdclark@gmail.com> Cc: "17.0" <mesa-stable@lists.freedesktop.org>
-rw-r--r--src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c b/src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c
index 6741852f31b..822cbb9ee69 100644
--- a/src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c
+++ b/src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c
@@ -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)