diff options
author | Matt Turner <[email protected]> | 2014-06-24 12:42:00 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-07-01 08:55:51 -0700 |
commit | bc2fbbafd216676ccc7c3abd794ecb7dd1fa631f (patch) | |
tree | f1765fb6b562078742058b0adc4ce66caf5a4247 /src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp | |
parent | e8e5f0a342505a4d10cbcdee03592c96d286b57c (diff) |
i965: Add and use foreach_inst_in_block macros.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp index d39724a5ce3..0973dc9d83a 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp @@ -144,10 +144,7 @@ fs_live_variables::setup_def_use() if (b > 0) assert(cfg->blocks[b - 1]->end_ip == ip - 1); - for (fs_inst *inst = (fs_inst *)block->start; - inst != block->end->next; - inst = (fs_inst *)inst->next) { - + foreach_inst_in_block(fs_inst, inst, block) { /* Set use[] for this instruction */ for (unsigned int i = 0; i < inst->sources; i++) { fs_reg reg = inst->src[i]; |