diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-01-21 14:08:20 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-01-21 14:08:20 -0700 |
commit | 329a8479b69a800b5fc6485767fb676c3eae26db (patch) | |
tree | dd2862b46e0eeb0da7dd5751335745a50d274a6f /src/mesa/pipe/draw/draw_validate.c | |
parent | 7f21d04a518ac24348934961646501d6ed029466 (diff) |
gallium: new 'draw' stage for line stipple
Stippled lines are converted into a series of shorter line segments
Diffstat (limited to 'src/mesa/pipe/draw/draw_validate.c')
-rw-r--r-- | src/mesa/pipe/draw/draw_validate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_validate.c b/src/mesa/pipe/draw/draw_validate.c index 58cf340281..df06e0426c 100644 --- a/src/mesa/pipe/draw/draw_validate.c +++ b/src/mesa/pipe/draw/draw_validate.c @@ -58,6 +58,11 @@ static void validate_begin( struct draw_stage *stage ) next = draw->pipeline.wide; } + if (draw->rasterizer->line_stipple_enable) { + draw->pipeline.stipple->next = next; + next = draw->pipeline.stipple; + } + if (draw->rasterizer->fill_cw != PIPE_POLYGON_MODE_FILL || draw->rasterizer->fill_ccw != PIPE_POLYGON_MODE_FILL) { draw->pipeline.unfilled->next = next; |