diff options
author | Jason Ekstrand <[email protected]> | 2016-02-16 12:21:55 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-17 18:04:39 -0800 |
commit | da9fd74d34478a24e1a607dd612a90e1ecb40a7d (patch) | |
tree | 6832029ba330a82fb3780ffe3c880f010dd51719 /src | |
parent | 9963af8bbdcf424c4f1ff16d2122d003f7c99154 (diff) |
anv: Pull StencilBufferWriteEnable from both sides
Diffstat (limited to 'src')
-rw-r--r-- | src/vulkan/gen8_cmd_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vulkan/gen8_cmd_buffer.c b/src/vulkan/gen8_cmd_buffer.c index ebd6123454d..5ca6f6978c9 100644 --- a/src/vulkan/gen8_cmd_buffer.c +++ b/src/vulkan/gen8_cmd_buffer.c @@ -427,7 +427,8 @@ genX(cmd_buffer_flush_state)(struct anv_cmd_buffer *cmd_buffer) struct GEN9_3DSTATE_WM_DEPTH_STENCIL wm_depth_stencil = { GEN9_3DSTATE_WM_DEPTH_STENCIL_header, - .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, |