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:
parent
9392e2b275
commit
f43bb36cac
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue