anv/pipeline: Respect pRasterizationState->depthBiasEnable

This commit is contained in:
Jason Ekstrand
2016-03-04 00:01:25 -08:00
parent 9d7faadd8a
commit fa8539dd6b
4 changed files with 6 additions and 12 deletions

View File

@@ -67,6 +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,
};
GENX(3DSTATE_SF_pack)(NULL, &pipeline->gen7.sf, &sf);