summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_cfg.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-09-02 17:30:29 -0700
committerMatt Turner <mattst88@gmail.com>2014-09-24 09:42:46 -0700
commit3fe1a84bbe608c2a9676d0f80f778e716a505421 (patch)
tree0cd4a96615d0273bbf7406476125599f25c9274f /src/mesa/drivers/dri/i965/brw_cfg.h
parent153d148e9e1f89a567b5079003b4b8070925ddcd (diff)
downloadexternal_mesa3d-3fe1a84bbe608c2a9676d0f80f778e716a505421.zip
external_mesa3d-3fe1a84bbe608c2a9676d0f80f778e716a505421.tar.gz
external_mesa3d-3fe1a84bbe608c2a9676d0f80f778e716a505421.tar.bz2
i965/cfg: Add note about double-loop macros and break behavior.
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_cfg.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_cfg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h
index 3819f1f..c50eb7d 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)