Silence the warning upstream/1.2.0pre
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 21 Jun 2013 04:21:58 +0000 (12:21 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Fri, 21 Jun 2013 04:21:58 +0000 (12:21 +0800)
  CC     i965_drv_video_la-gen75_vpp_vebox.lo
gen75_vpp_vebox.c: In function ‘hsw_veb_dndi_iecp_command’:
gen75_vpp_vebox.c:697:5: warning: suggest parentheses around arithmetic in operand of ‘|’

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
src/gen75_vpp_vebox.c

index b56ffeb..50df627 100644 (file)
@@ -696,7 +696,7 @@ void hsw_veb_dndi_iecp_command(VADriverContextP ctx, struct intel_vebox_context
     OUT_VEB_BATCH(batch, VEB_DNDI_IECP_STATE | (10 - 2));
     OUT_VEB_BATCH(batch,
                   startingX << 16 |
-                  endingX-1);
+                  (endingX-1));
     OUT_RELOC(batch,
               proc_ctx->frame_store[FRAME_IN_CURRENT].obj_surface->bo,
               I915_GEM_DOMAIN_RENDER, 0, frame_ctrl_bits);