i965/cfg: Add note about double-loop macros and break behavior.
authorMatt Turner <mattst88@gmail.com>
Wed, 3 Sep 2014 00:30:29 +0000 (17:30 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 24 Sep 2014 16:42:46 +0000 (09:42 -0700)
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/brw_cfg.h

index 3819f1f..c50eb7d 100644 (file)
@@ -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)