summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen7_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-18 11:43:48 -0800
committerJason Ekstrand <[email protected]>2015-11-18 11:43:52 -0800
commitfb8b2f5f9e029fdaaf78cac4b7f72084c4ae4ea2 (patch)
tree24260188933dac91bfc9ac1765e09a6f8a16f941 /src/vulkan/gen7_pipeline.c
parente9d634f4adeb0343d255dcd46ea7eb0d79f0416c (diff)
anv/gen7: A bunch of depth-stencil fixes
There are various bits which move around between Haswell and Ivy Bridge that we weren't taking into account. This also makes us actually set the StencilWriteEnable in a sane way.
Diffstat (limited to 'src/vulkan/gen7_pipeline.c')
-rw-r--r--src/vulkan/gen7_pipeline.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/vulkan/gen7_pipeline.c b/src/vulkan/gen7_pipeline.c
index bcfa986769e..7d44c72b1a2 100644
--- a/src/vulkan/gen7_pipeline.c
+++ b/src/vulkan/gen7_pipeline.c
@@ -224,17 +224,12 @@ gen7_emit_ds_state(struct anv_pipeline *pipeline,
return;
}
- bool has_stencil = false; /* enable if subpass has stencil? */
-
struct GEN7_DEPTH_STENCIL_STATE state = {
.DepthTestEnable = info->depthTestEnable,
.DepthBufferWriteEnable = info->depthWriteEnable,
.DepthTestFunction = vk_to_gen_compare_op[info->depthCompareOp],
.DoubleSidedStencilEnable = true,
- /* Is this what we need to do? */
- .StencilBufferWriteEnable = has_stencil,
-
.StencilTestEnable = info->stencilTestEnable,
.StencilFailOp = vk_to_gen_stencil_op[info->front.stencilFailOp],
.StencilPassDepthPassOp = vk_to_gen_stencil_op[info->front.stencilPassOp],