intel: fix stencil refs
diff --git a/icd/intel/cmd_pipeline.c b/icd/intel/cmd_pipeline.c
index 957b7ec..2e400de 100644
--- a/icd/intel/cmd_pipeline.c
+++ b/icd/intel/cmd_pipeline.c
@@ -1286,8 +1286,8 @@
if (ds) {
ds_offset = gen6_DEPTH_STENCIL_STATE(cmd, ds);
- stencil_ref = (ds->ds_info.stencilFrontRef && 0xff) << 24 |
- (ds->ds_info.stencilBackRef && 0xff) << 16;
+ stencil_ref = (ds->ds_info.stencilFrontRef & 0xff) << 24 |
+ (ds->ds_info.stencilBackRef & 0xff) << 16;
} else {
ds_offset = 0;
stencil_ref = 0;
@@ -1360,13 +1360,13 @@
if (ds) {
offset = gen6_DEPTH_STENCIL_STATE(cmd, ds);
- stencil_ref = (ds->ds_info.stencilFrontRef && 0xff) << 24 |
- (ds->ds_info.stencilBackRef && 0xff) << 16;
+ stencil_ref = (ds->ds_info.stencilFrontRef & 0xff) << 24 |
+ (ds->ds_info.stencilBackRef & 0xff) << 16;
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;
+ stencil_ref = (ds->ds_info.stencilFrontRef & 0xff) << 24 |
+ (ds->ds_info.stencilBackRef & 0xff) << 16;
} else {
stencil_ref = 0;
}