summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/gen8_cmd_buffer.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-03-01 10:59:21 -0800
committerJason Ekstrand <[email protected]>2016-03-01 11:03:29 -0800
commit6e20c1e058d7449c800506d05cd1c6431fa77a4b (patch)
treee66c5dbb8a3c6f7fdb841b9058c3a75df318c6ac /src/intel/vulkan/gen8_cmd_buffer.c
parent4cfdd1650083f3e425112ff697538e9818bc8946 (diff)
anv/cmd_buffer: Look at both sides for stencil enable
Now it's all consistent with gen9
Diffstat (limited to 'src/intel/vulkan/gen8_cmd_buffer.c')
-rw-r--r--src/intel/vulkan/gen8_cmd_buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/gen8_cmd_buffer.c b/src/intel/vulkan/gen8_cmd_buffer.c
index 8a0fe60db33..884152da207 100644
--- a/src/intel/vulkan/gen8_cmd_buffer.c
+++ b/src/intel/vulkan/gen8_cmd_buffer.c
@@ -388,8 +388,8 @@ genX(cmd_buffer_flush_state)(struct anv_cmd_buffer *cmd_buffer)
struct GENX(3DSTATE_WM_DEPTH_STENCIL wm_depth_stencil) = {
GENX(3DSTATE_WM_DEPTH_STENCIL_header),
- /* Is this what we need to do? */
- .StencilBufferWriteEnable = d->stencil_write_mask.front != 0,
+ .StencilBufferWriteEnable = d->stencil_write_mask.front != 0 ||
+ d->stencil_write_mask.back != 0,
.StencilTestMask = d->stencil_compare_mask.front & 0xff,
.StencilWriteMask = d->stencil_write_mask.front & 0xff,