Intel: Initialize stencil_ref before using
diff --git a/icd/intel/cmd_pipeline.c b/icd/intel/cmd_pipeline.c
index da9d785..0762f2f 100644
--- a/icd/intel/cmd_pipeline.c
+++ b/icd/intel/cmd_pipeline.c
@@ -1390,6 +1390,8 @@
         gen7_3dstate_pointer(cmd,
                 GEN7_RENDER_OPCODE_3DSTATE_DEPTH_STENCIL_STATE_POINTERS,
                 offset);
+        stencil_ref = (ds->ds_info.stencilFrontRef && 0xff) << 24 |
+                      (ds->ds_info.stencilBackRef && 0xff) << 16;
     } else {
         stencil_ref = 0;
     }