diff options
author | Rob Clark <[email protected]> | 2017-01-11 11:31:40 -0500 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-01-24 01:57:10 +0000 |
commit | 250b1cad3bd233a3d74753eb5a42df24ed1efa09 (patch) | |
tree | 7e4f5feaeea3175d6e070bfea6d7a5ccb03c6383 | |
parent | 9318d81574bc87b61f7b5104cd7070baa9cd51e4 (diff) |
freedreno/a5xx: fix cull state
Signed-off-by: Rob Clark <[email protected]>
Cc: "17.0" <[email protected]>
(cherry picked from commit 4d9aa4f67d6316feea93901bf29b76a68c4333cd)
-rw-r--r-- | src/gallium/drivers/freedreno/a5xx/fd5_rasterizer.c | 10 |
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) |