i965: Initialize flags to 0 and |= in new flags.

This makes it a bit easier to add new unconditional flags.
This commit is contained in:
Kenneth Graunke
2017-08-02 17:39:56 -07:00
parent cf412f3afe
commit 12a77f391f
@@ -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;