[965] Clean up whitespace and dead code from do_unfilled change.
This commit is contained in:
parent
d24a5254c2
commit
5cc56cbad8
|
@ -168,12 +168,10 @@ static void upload_clip_prog( struct brw_context *brw )
|
||||||
offset_front = 0;
|
offset_front = 0;
|
||||||
break;
|
break;
|
||||||
case GL_LINE:
|
case GL_LINE:
|
||||||
key.do_unfilled = 1;
|
|
||||||
fill_front = CLIP_LINE;
|
fill_front = CLIP_LINE;
|
||||||
offset_front = brw->attribs.Polygon->OffsetLine;
|
offset_front = brw->attribs.Polygon->OffsetLine;
|
||||||
break;
|
break;
|
||||||
case GL_POINT:
|
case GL_POINT:
|
||||||
key.do_unfilled = 1;
|
|
||||||
fill_front = CLIP_POINT;
|
fill_front = CLIP_POINT;
|
||||||
offset_front = brw->attribs.Polygon->OffsetPoint;
|
offset_front = brw->attribs.Polygon->OffsetPoint;
|
||||||
break;
|
break;
|
||||||
|
@ -188,12 +186,10 @@ static void upload_clip_prog( struct brw_context *brw )
|
||||||
offset_back = 0;
|
offset_back = 0;
|
||||||
break;
|
break;
|
||||||
case GL_LINE:
|
case GL_LINE:
|
||||||
key.do_unfilled = 1;
|
|
||||||
fill_back = CLIP_LINE;
|
fill_back = CLIP_LINE;
|
||||||
offset_back = brw->attribs.Polygon->OffsetLine;
|
offset_back = brw->attribs.Polygon->OffsetLine;
|
||||||
break;
|
break;
|
||||||
case GL_POINT:
|
case GL_POINT:
|
||||||
key.do_unfilled = 1;
|
|
||||||
fill_back = CLIP_POINT;
|
fill_back = CLIP_POINT;
|
||||||
offset_back = brw->attribs.Polygon->OffsetPoint;
|
offset_back = brw->attribs.Polygon->OffsetPoint;
|
||||||
break;
|
break;
|
||||||
|
@ -201,13 +197,12 @@ static void upload_clip_prog( struct brw_context *brw )
|
||||||
}
|
}
|
||||||
|
|
||||||
if (brw->attribs.Polygon->BackMode != GL_FILL ||
|
if (brw->attribs.Polygon->BackMode != GL_FILL ||
|
||||||
brw->attribs.Polygon->FrontMode != GL_FILL)
|
brw->attribs.Polygon->FrontMode != GL_FILL) {
|
||||||
key.do_unfilled = 1;
|
key.do_unfilled = 1;
|
||||||
|
|
||||||
/* Most cases the fixed function units will handle. Cases where
|
/* Most cases the fixed function units will handle. Cases where
|
||||||
* one or more polygon faces are unfilled will require help:
|
* one or more polygon faces are unfilled will require help:
|
||||||
*/
|
*/
|
||||||
if (key.do_unfilled) {
|
|
||||||
key.clip_mode = BRW_CLIPMODE_CLIP_NON_REJECTED;
|
key.clip_mode = BRW_CLIPMODE_CLIP_NON_REJECTED;
|
||||||
|
|
||||||
if (offset_back || offset_front) {
|
if (offset_back || offset_front) {
|
||||||
|
|
Loading…
Reference in New Issue