From f361edae5d495254f4bc27473bf24b1ac7d5af06 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 16 Nov 2007 09:31:25 -0700 Subject: [PATCH] added a clip-bypass flag to rasterizer state --- src/mesa/pipe/draw/draw_validate.c | 1 + src/mesa/pipe/p_state.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/pipe/draw/draw_validate.c b/src/mesa/pipe/draw/draw_validate.c index fdeb1be8ca7..4e8f986b272 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 848c32701fe..570f44e24ed 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 */ -- 2.30.2