Commit c023c95e authored by Andreas Baierl's avatar Andreas Baierl Committed by Marge Bot
Browse files

lima: Remove depth near/far workaround

because this is fixed now.
Reviewed-by: Erico Nunes's avatarErico Nunes <>
Signed-off-by: Andreas Baierl's avatarAndreas Baierl <>
Part-of: <mesa/mesa!12804>
parent a71b945a
Pipeline #405636 waiting for manual action with stages
......@@ -656,15 +656,6 @@ lima_pack_render_state(struct lima_context *ctx, const struct pipe_draw_info *in
near = float_to_ushort(ctx->viewport.near);
far = float_to_ushort(ctx->viewport.far);
/* Insert a small 'epsilon' difference between 'near' and 'far' when
* they are equal, to avoid application bugs. */
if (far == near) {
if (near > 0)
if (far < USHRT_MAX)
/* overlap with plbu? any place can remove one? */
render->depth_range = near | (far << 16);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment