added a clip-bypass flag to rasterizer state

This commit is contained in:
Brian 2007-11-16 09:31:25 -07:00
parent 90dd0cb822
commit f361edae5d
2 changed files with 2 additions and 0 deletions

View 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;

View 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 */