diff mbox

[3/5] xvmc: Silence gcc, add parentheses around arithmetic.

Message ID 1296451359-28449-3-git-send-email-kibi@debian.org (mailing list archive)
State New, archived
Headers show

Commit Message

Cyril Brulebois Jan. 31, 2011, 5:22 a.m. UTC
None
diff mbox

Patch

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();
 }