asahi: Enable depth culling

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11084>
This commit is contained in:
Alyssa Rosenzweig 2021-05-31 01:43:15 +05:30 committed by Marge Bot
parent 9392e2b275
commit f43bb36cac
1 changed files with 1 additions and 2 deletions

View File

@ -155,11 +155,10 @@ agx_create_rs_state(struct pipe_context *ctx,
so->base = *cso;
agx_pack(so->cull, CULL, cfg) {
/* TODO: debug culling */
cfg.cull_front = cso->cull_face & PIPE_FACE_FRONT;
cfg.cull_back = cso->cull_face & PIPE_FACE_BACK;
cfg.front_face_ccw = cso->front_ccw;
// cfg.depth_clip = cso->depth_clip_near;
cfg.depth_clip = cso->depth_clip_near;
cfg.depth_clamp = !cso->depth_clip_near;
};