From 12a77f391f80e2c35fd4676a9c9f882003221712 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 2 Aug 2017 17:39:56 -0700 Subject: [PATCH] i965: Initialize flags to 0 and |= in new flags. This makes it a bit easier to add new unconditional flags. --- src/mesa/drivers/dri/i965/intel_batchbuffer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index 666ea6afe3e..58482ecac9f 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -637,12 +637,12 @@ do_flush_locked(struct brw_context *brw, int in_fence_fd, int *out_fence_fd) } if (!brw->screen->no_hw) { - int flags; + int flags = 0; if (brw->gen >= 6 && batch->ring == BLT_RING) { - flags = I915_EXEC_BLT; + flags |= I915_EXEC_BLT; } else { - flags = I915_EXEC_RENDER; + flags |= I915_EXEC_RENDER; } if (batch->needs_sol_reset) flags |= I915_EXEC_GEN7_SOL_RESET; -- 2.30.2