intel: Set stencil read and write for backfaces
The stencil read and write masks for backfaces need to be set separately.
diff --git a/icd/intel/state.c b/icd/intel/state.c
index 20c68c3..232c70b 100644
--- a/icd/intel/state.c
+++ b/icd/intel/state.c
@@ -511,8 +511,11 @@
if (info->stencilWriteMask)
dw[0] |= 1 << 18;
+ /* same read and write masks for both front and back faces */
dw[1] = (info->stencilReadMask & 0xff) << 24 |
- (info->stencilWriteMask & 0xff) << 16;
+ (info->stencilWriteMask & 0xff) << 16 |
+ (info->stencilReadMask & 0xff) << 8 |
+ (info->stencilWriteMask & 0xff);
state->cmd_stencil_ref = (info->front.stencilRef & 0xff) << 24 |
(info->back.stencilRef & 0xff) << 16;