瀏覽代碼

added a clip-bypass flag to rasterizer state

tags/mesa_20090313
Brian 18 年之前
父節點
當前提交
f361edae5d
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1
    0
      src/mesa/pipe/draw/draw_validate.c
  2. 1
    0
      src/mesa/pipe/p_state.h

+ 1
- 0
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;

+ 1
- 0
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 */

Loading…
取消
儲存