anv/pipeline: Fix depthBiasEnable on gen7
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 5 Mar 2016 01:56:12 +0000 (17:56 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 5 Mar 2016 01:56:12 +0000 (17:56 -0800)
The first time I tried to fix this, I set the wrong fields.

src/intel/vulkan/gen7_pipeline.c

index d563a8c26cdf8c1455279f971dd8cf38c7e37e5b..5235d399ce5665d4137c7eba258fb227dc833276 100644 (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);