diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-11-16 09:31:25 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-11-16 09:31:25 -0700 |
commit | f361edae5d495254f4bc27473bf24b1ac7d5af06 (patch) | |
tree | f285f3fe90fc875822fe4078a80769190e393385 | |
parent | 90dd0cb822f2fe14258c786e5c37da69472b7d17 (diff) |
added a clip-bypass flag to rasterizer state
-rw-r--r-- | src/mesa/pipe/draw/draw_validate.c | 1 | ||||
-rw-r--r-- | src/mesa/pipe/p_state.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_validate.c b/src/mesa/pipe/draw/draw_validate.c index fdeb1be8ca..4e8f986b27 100644 --- a/src/mesa/pipe/draw/draw_validate.c +++ b/src/mesa/pipe/draw/draw_validate.c @@ -85,6 +85,7 @@ static void validate_begin( struct draw_stage *stage ) /* Clip stage */ + if (!draw->rasterizer->bypass_clipping) { draw->pipeline.clip->next = next; next = draw->pipeline.clip; diff --git a/src/mesa/pipe/p_state.h b/src/mesa/pipe/p_state.h index 848c32701f..570f44e24e 100644 --- a/src/mesa/pipe/p_state.h +++ b/src/mesa/pipe/p_state.h @@ -92,6 +92,7 @@ struct pipe_rasterizer_state unsigned line_stipple_enable:1; unsigned line_stipple_factor:8; /**< [1..256] actually */ unsigned line_stipple_pattern:16; + unsigned bypass_clipping:1; float line_width; float point_size; /**< used when no per-vertex size */ |