summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/gen7_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-04 00:01:25 -0800
committerJason Ekstrand <[email protected]>2016-03-04 12:03:00 -0800
commitfa8539dd6b1fd9bb1fc7f2f79889aacf14231d13 (patch)
tree51da31ad511522714886d6d52e233ce420953cff /src/intel/vulkan/gen7_pipeline.c
parent9d7faadd8a319d07616d7288451562bf8b9a4be8 (diff)
anv/pipeline: Respect pRasterizationState->depthBiasEnable
Diffstat (limited to 'src/intel/vulkan/gen7_pipeline.c')
-rw-r--r--src/intel/vulkan/gen7_pipeline.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intel/vulkan/gen7_pipeline.c b/src/intel/vulkan/gen7_pipeline.c
index 7d283f18f40..c114bfef3ac 100644
--- a/src/intel/vulkan/gen7_pipeline.c
+++ b/src/intel/vulkan/gen7_pipeline.c
@@ -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);