commit | fc2aba6e9535ae9e9a1af160bfe14503ca4590b2 | [log] [tgz] |
---|---|---|
author | Tony Barbour <tony@LunarG.com> | Thu Jan 22 18:01:18 2015 -0700 |
committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | Wed Feb 04 17:58:08 2015 -0700 |
tree | 982dd0c0749e55747b12b4df246f35f515188be2 | |
parent | 3e2bd490bd184ad1995dde88d6b4137bd1c5d22b [diff] [blame] |
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; }