i965: enable polygon offset on sandybridge

Depth offset function is moved to SF stage on sandybridge.
This commit is contained in:
Zhenyu Wang 2010-09-26 13:17:18 +08:00
parent 15a8e7ec90
commit 3f3059fcc0
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ upload_sf_state(struct brw_context *brw)
if ((ctx->Polygon.FrontFace == GL_CCW) ^ render_to_fbo)
dw2 |= GEN6_SF_WINDING_CCW;
if (ctx->Polygon.OffsetFill)
dw2 |= GEN6_SF_GLOBAL_DEPTH_OFFSET_SOLID;
/* _NEW_SCISSOR */
if (ctx->Scissor.Enabled)
dw3 |= GEN6_SF_SCISSOR_ENABLE;