i965/cfg: Add note about double-loop macros and break behavior.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_cfg.h
index 3819f1f3401cae6cfe14f9f984a11a7f548dd94a..c50eb7dcf105086e8a2ef060ebd98245867f4b64 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)