From: Matt Turner Date: Wed, 3 Sep 2014 00:30:29 +0000 (-0700) Subject: i965/cfg: Add note about double-loop macros and break behavior. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3fe1a84bbe608c2a9676d0f80f778e716a505421;p=mesa.git i965/cfg: Add note about double-loop macros and break behavior. Reviewed-by: Topi Pohjolainen --- diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h index 3819f1f3401..c50eb7dcf10 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.h +++ b/src/mesa/drivers/dri/i965/brw_cfg.h @@ -110,10 +110,16 @@ struct cfg_t { int num_blocks; }; +/* Note that this is implemented with a double for loop -- break will + * break from the inner loop only! + */ #define foreach_block_and_inst(__block, __type, __inst, __cfg) \ foreach_block (__block, __cfg) \ foreach_inst_in_block (__type, __inst, __block) +/* Note that this is implemented with a double for loop -- break will + * break from the inner loop only! + */ #define foreach_block_and_inst_safe(__block, __type, __inst, __cfg) \ foreach_block_safe (__block, __cfg) \ foreach_inst_in_block_safe (__type, __inst, __block)