anv: Pull StencilBufferWriteEnable from both sides

This commit is contained in:
Jason Ekstrand 2016-02-16 12:21:55 -08:00
parent 9963af8bbd
commit da9fd74d34
1 changed files with 2 additions and 1 deletions

View File

@ -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,