diff options
author | Matt Turner <mattst88@gmail.com> | 2014-06-24 12:42:00 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-07-01 08:55:51 -0700 |
commit | bc2fbbafd216676ccc7c3abd794ecb7dd1fa631f (patch) | |
tree | f1765fb6b562078742058b0adc4ce66caf5a4247 /src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | |
parent | e8e5f0a342505a4d10cbcdee03592c96d286b57c (diff) | |
download | external_mesa3d-bc2fbbafd216676ccc7c3abd794ecb7dd1fa631f.zip external_mesa3d-bc2fbbafd216676ccc7c3abd794ecb7dd1fa631f.tar.gz external_mesa3d-bc2fbbafd216676ccc7c3abd794ecb7dd1fa631f.tar.bz2 |
i965: Add and use foreach_inst_in_block macros.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp index 29c8b2e..079eb2e 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_saturate_propagation.cpp @@ -34,9 +34,7 @@ opt_saturate_propagation_local(fs_visitor *v, bblock_t *block) bool progress = false; int ip = block->start_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) { ip++; if (inst->opcode != BRW_OPCODE_MOV || |