summaryrefslogtreecommitdiff
path: root/src/mesa/pipe
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-11-16 09:31:25 -0700
committerBrian <brian.paul@tungstengraphics.com>2007-11-16 09:31:25 -0700
commitf361edae5d495254f4bc27473bf24b1ac7d5af06 (patch)
treef285f3fe90fc875822fe4078a80769190e393385 /src/mesa/pipe
parent90dd0cb822f2fe14258c786e5c37da69472b7d17 (diff)
added a clip-bypass flag to rasterizer state
Diffstat (limited to 'src/mesa/pipe')
-rw-r--r--src/mesa/pipe/draw/draw_validate.c1
-rw-r--r--src/mesa/pipe/p_state.h1
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 */