mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
i965/cfg: Add note about double-loop macros and break behavior.
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
153d148e9e
commit
3fe1a84bbe
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue