Commit 137d8f98 authored by Neil Roberts's avatar Neil Roberts Committed by Marge Bot

v3d: Enable perpendicular line caps when line smoothing

V3D has a bit to set the line caps to be perpendicular to the line
rather than aligned to the edges of the framebuffer. I don’t know what
the disadvantages are of enabling this, but I noticed by experimentation
that enabling line smoothing on the Intel driver also enables nicer line
caps, so it seems nice to enable it here too.
Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
Part-of: <!5624>
parent ee4d51f8
Pipeline #172487 waiting for manual action with stages
......@@ -527,6 +527,12 @@ v3dX(emit_state)(struct pipe_context *pctx)
config.stencil_enable =
v3d->zsa->base.stencil[0].enabled;
/* Use nicer line caps when line smoothing is
* enabled
*/
config.line_rasterization =
v3d_line_smoothing_enabled(v3d) ? 1 : 0;
}
}
......
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