From patchwork Mon Jan 31 05:22:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cyril Brulebois X-Patchwork-Id: 518521 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0V5NSbq018446 for ; Mon, 31 Jan 2011 05:23:48 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 947C79E9D1 for ; Sun, 30 Jan 2011 21:23:28 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from glenfiddich.ikibiki.org (glenfiddich.ikibiki.org [88.191.124.82]) by gabe.freedesktop.org (Postfix) with ESMTP id 16D059E775 for ; Sun, 30 Jan 2011 21:22:46 -0800 (PST) Received: from home.ikibiki.org ([88.164.242.219] helo=kitty) by glenfiddich.ikibiki.org with esmtp (Exim 4.69) (envelope-from ) id 1PjmDs-0007h7-Ed; Mon, 31 Jan 2011 06:22:44 +0100 Received: from kibi by kitty with local (Exim 4.72) (envelope-from ) id 1PjmDs-0007PP-Aq; Mon, 31 Jan 2011 06:22:44 +0100 From: Cyril Brulebois To: intel-gfx@lists.freedesktop.org Date: Mon, 31 Jan 2011 06:22:37 +0100 Message-Id: <1296451359-28449-3-git-send-email-kibi@debian.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1296451359-28449-1-git-send-email-kibi@debian.org> References: <1296451359-28449-1-git-send-email-kibi@debian.org> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 3/5] xvmc: Silence gcc, add parentheses around arithmetic. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 31 Jan 2011 05:23:48 +0000 (UTC) X-MIME-Autoconverted: from base64 to 8bit by demeter1.kernel.org id p0V5NSbq018446 diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c index fbd4555..dc3b593 100644 --- a/src/xvmc/i915_xvmc.c +++ b/src/xvmc/i915_xvmc.c @@ -367,17 +367,17 @@ static void i915_mc_one_time_state_emit(XvMCContext * context) /* Sample state buffer */ OUT_RELOC(pI915XvMC->ssb_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, - STATE_VALID | STATE_FORCE); + (STATE_VALID | STATE_FORCE)); OUT_BATCH(7); /* 8 - 1 */ /* Pixel shader program buffer */ OUT_RELOC(pI915XvMC->psp_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, - STATE_VALID | STATE_FORCE); + (STATE_VALID | STATE_FORCE)); OUT_BATCH(66); /* 4 + 16 + 16 + 31 - 1 */ /* Pixel shader constant buffer */ OUT_RELOC(pI915XvMC->psc_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, - STATE_VALID | STATE_FORCE); + (STATE_VALID | STATE_FORCE)); OUT_BATCH(5); /* 6 - 1 */ ADVANCE_BATCH(); } @@ -705,12 +705,12 @@ static void i915_mc_load_indirect_render_emit(XvMCContext * context) /* Static Indirect state buffer (dest buffer info) */ OUT_RELOC(pI915XvMC->sis_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, - STATE_VALID | STATE_FORCE); + (STATE_VALID | STATE_FORCE)); OUT_BATCH(16); /* 4 * 3 + 2 + 3 - 1 */ /* Map state buffer (reference buffer info) */ OUT_RELOC(pI915XvMC->msb_bo, I915_GEM_DOMAIN_INSTRUCTION, 0, - STATE_VALID | STATE_FORCE); + (STATE_VALID | STATE_FORCE)); OUT_BATCH(23); /* 3 * 8 - 1 */ ADVANCE_BATCH(); }