OSDN Git Service

i965: Move BEGIN_BATCH() into same control flow as ADVANCE_BATCH().
authorMatt Turner <mattst88@gmail.com>
Thu, 9 Jul 2015 01:56:52 +0000 (18:56 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 15 Jul 2015 20:09:22 +0000 (13:09 -0700)
commitfbf3aebf1f33fbec559c5b69bdf3b5dec6031612
treecf990e54bea25806c826b10c2a3fa1cbb1aabeee
parent141e1eb29fe80ad341e718147a1277cc3b1b9c11
i965: Move BEGIN_BATCH() into same control flow as ADVANCE_BATCH().

BEGIN_BATCH() and ADVANCE_BATCH() will contain "do {" and "} while (0)"
respectively to allow declaring local variables used by intervening
OUT_BATCH macros. As such, BEGIN_BATCH() and ADVANCE_BATCH() need to be
in the same control flow.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_draw.c