diff options
author | Matt Turner <mattst88@gmail.com> | 2014-07-11 21:17:01 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-07-21 10:35:38 -0700 |
commit | dd65a6d9ada7cfa1b694d4211d8c95e446b29c62 (patch) | |
tree | ad1d18eb66c8b1df02003f06a395d6a26c2f4b40 /src/mesa/drivers/dri | |
parent | 680fe0acb3e6569f7b9aab1913e9181d5a7eee2f (diff) | |
download | external_mesa3d-dd65a6d9ada7cfa1b694d4211d8c95e446b29c62.zip external_mesa3d-dd65a6d9ada7cfa1b694d4211d8c95e446b29c62.tar.gz external_mesa3d-dd65a6d9ada7cfa1b694d4211d8c95e446b29c62.tar.bz2 |
i965/cfg: Add a foreach_block_and_inst macro.
Will let us abstract how the instructions are stored.
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_cfg.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h index cdbadde..01fcc1b 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.h +++ b/src/mesa/drivers/dri/i965/brw_cfg.h @@ -103,6 +103,10 @@ struct cfg_t { int num_blocks; }; +#define foreach_block_and_inst(__block, __type, __inst, __cfg) \ + foreach_block (__block, __cfg) \ + foreach_inst_in_block (__type, __inst, __block) + #define foreach_inst_in_block(__type, __inst, __block) \ for (__type *__inst = (__type *)__block->start; \ __inst != __block->end->next; \ |