diff options
author | Neil Roberts <neil@linux.intel.com> | 2015-10-20 11:16:00 +0200 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2015-10-21 11:07:04 +0200 |
commit | 801f151917fedb13c5c6e96281a18d833dd6901f (patch) | |
tree | fa2e96f808887fbc24040d389f3d0412a9875774 /src/mesa/drivers/dri/i965/brw_cfg.h | |
parent | 38ceeeadaa2f5f0a21dba9f5339fbc4cba66dece (diff) | |
download | external_mesa3d-801f151917fedb13c5c6e96281a18d833dd6901f.tar.gz external_mesa3d-801f151917fedb13c5c6e96281a18d833dd6901f.tar.bz2 external_mesa3d-801f151917fedb13c5c6e96281a18d833dd6901f.zip |
i965: Remove block arg from foreach_inst_in_block_*_starting_from
Since 49374fab5d793 these macros no longer actually use the block
argument. I think this is worth doing to make the macros easier to use
because they already have really long names and a confusing set of
arguments.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_cfg.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_cfg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cfg.h b/src/mesa/drivers/dri/i965/brw_cfg.h index a09491781e..a06b0aa1cd 100644 --- a/src/mesa/drivers/dri/i965/brw_cfg.h +++ b/src/mesa/drivers/dri/i965/brw_cfg.h @@ -327,12 +327,12 @@ struct cfg_t { #define foreach_inst_in_block_reverse_safe(__type, __inst, __block) \ foreach_in_list_reverse_safe(__type, __inst, &(__block)->instructions) -#define foreach_inst_in_block_starting_from(__type, __scan_inst, __inst, __block) \ +#define foreach_inst_in_block_starting_from(__type, __scan_inst, __inst) \ for (__type *__scan_inst = (__type *)__inst->next; \ !__scan_inst->is_tail_sentinel(); \ __scan_inst = (__type *)__scan_inst->next) -#define foreach_inst_in_block_reverse_starting_from(__type, __scan_inst, __inst, __block) \ +#define foreach_inst_in_block_reverse_starting_from(__type, __scan_inst, __inst) \ for (__type *__scan_inst = (__type *)__inst->prev; \ !__scan_inst->is_head_sentinel(); \ __scan_inst = (__type *)__scan_inst->prev) |