anv/pipeline: Fix depthBiasEnable on gen7

The first time I tried to fix this, I set the wrong fields.
This commit is contained in:
Jason Ekstrand
2016-03-04 17:56:12 -08:00
parent 653261285e
commit cc57efc67a

View File

@@ -67,9 +67,9 @@ gen7_emit_rs_state(struct anv_pipeline *pipeline,
/* uint32_t VertexSubPixelPrecisionSelect; */
.UsePointWidthState = !pipeline->writes_point_size,
.PointWidth = 1.0,
.GlobalDepthOffsetConstant = info->depthBiasEnable,
.GlobalDepthOffsetScale = info->depthBiasEnable,
.GlobalDepthOffsetClamp = info->depthBiasEnable,
.GlobalDepthOffsetEnableSolid = info->depthBiasEnable,
.GlobalDepthOffsetEnableWireframe = info->depthBiasEnable,
.GlobalDepthOffsetEnablePoint = info->depthBiasEnable,
};
GENX(3DSTATE_SF_pack)(NULL, &pipeline->gen7.sf, &sf);