intel: set stencil masks for front and back faces
authorCourtney Goeltzenleuchter <courtney@LunarG.com>
Fri, 23 Jan 2015 22:21:37 +0000 (15:21 -0700)
committerCourtney Goeltzenleuchter <courtney@LunarG.com>
Thu, 5 Feb 2015 00:58:09 +0000 (17:58 -0700)
icd/intel/cmd_pipeline.c

index 9395e53..d130aa6 100644 (file)
@@ -976,8 +976,11 @@ static uint32_t gen6_DEPTH_STENCIL_STATE(struct intel_cmd *cmd,
     uint32_t dw[3];
 
     dw[0] = pipeline->cmd_depth_stencil;
+    /* same read and write masks for both front and back faces */
     dw[1] = (state->ds_info.stencilReadMask & 0xff) << 24 |
-            (state->ds_info.stencilWriteMask & 0xff) << 16;
+            (state->ds_info.stencilWriteMask & 0xff) << 16 |
+            (state->ds_info.stencilReadMask & 0xff) << 8 |
+            (state->ds_info.stencilWriteMask & 0xff);
     dw[2] = pipeline->cmd_depth_test;
 
     CMD_ASSERT(cmd, 6, 7.5);