added a clip-bypass flag to rasterizer state
authorBrian <brian.paul@tungstengraphics.com>
Fri, 16 Nov 2007 16:31:25 +0000 (09:31 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 16 Nov 2007 16:31:25 +0000 (09:31 -0700)
src/mesa/pipe/draw/draw_validate.c
src/mesa/pipe/p_state.h

index fdeb1be..4e8f986 100644 (file)
@@ -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;
index 848c327..570f44e 100644 (file)
@@ -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 */