Now that we have a separate flag to signal rectangular lines, let's use
that instead of the smooth-flag.
This should have the benefit of also drawing rectangular lines when
multisampling stippled, non-smooth lines. But it seems there were no
test for that, so no results to update.
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11782>
float counter;
ushort pattern;
ushort factor;
- bool smooth;
+ bool rectangular;
};
if (header->flags & DRAW_PIPE_RESET_STIPPLE)
stipple->counter = 0;
- if (stipple->smooth) {
+ if (stipple->rectangular) {
float dx = x1 - x0;
float dy = y1 - y0;
length = sqrtf(dx*dx + dy*dy);
stipple->pattern = draw->rasterizer->line_stipple_pattern;
stipple->factor = draw->rasterizer->line_stipple_factor + 1;
- stipple->smooth = draw->rasterizer->line_smooth;
+ stipple->rectangular = draw->rasterizer->line_rectangular;
stage->line = stipple_line;
stage->line(stage, header);