From: Rob Clark Date: Wed, 11 Jan 2017 16:31:40 +0000 (-0500) Subject: freedreno/a5xx: fix cull state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d9aa4f67d6316feea93901bf29b76a68c4333cd;p=mesa.git freedreno/a5xx: fix cull state Signed-off-by: Rob Clark Cc: "17.0" --- 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)