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 fdeb1be8ca7312ac7125360431d5c5f432dd38ad..4e8f986b272a62cb28a170a12905ac0aecc0214b 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 848c32701fec6cffba9e98bef5f047cdb92c26be..570f44e24ed2a866b2b430c661d1c0904ef232ea 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 */