From: Eric Anholt Date: Tue, 7 Nov 2017 23:21:06 +0000 (-0800) Subject: broadcom/vc5: Enable the Z min/max clipping planes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2daf941a58bacc3ade050218b2b31002f30ea29a;p=mesa.git broadcom/vc5: Enable the Z min/max clipping planes. --- diff --git a/src/gallium/drivers/vc5/vc5_emit.c b/src/gallium/drivers/vc5/vc5_emit.c index b84ddd66479..e54de7120c8 100644 --- a/src/gallium/drivers/vc5/vc5_emit.c +++ b/src/gallium/drivers/vc5/vc5_emit.c @@ -339,14 +339,12 @@ vc5_emit_state(struct pipe_context *pctx) clip.viewport_z_scale_zc_to_zs = vc5->viewport.scale[2]; } - if (0 /* XXX */) { cl_emit(&job->bcl, CLIPPER_Z_MIN_MAX_CLIPPING_PLANES, clip) { clip.minimum_zw = (vc5->viewport.translate[2] - vc5->viewport.scale[2]); clip.maximum_zw = (vc5->viewport.translate[2] + vc5->viewport.scale[2]); } - } cl_emit(&job->bcl, VIEWPORT_OFFSET, vp) { vp.viewport_centre_x_coordinate =