summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-06-24 15:53:19 -0700
committerMatt Turner <mattst88@gmail.com>2014-07-01 08:55:51 -0700
commitc5030ac0ac15d3c91c4352789f94281da9a9dcad (patch)
tree76c87e55c8a69d360180466b977c006dbf693bac /src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp
parentbc2fbbafd216676ccc7c3abd794ecb7dd1fa631f (diff)
downloadexternal_mesa3d-c5030ac0ac15d3c91c4352789f94281da9a9dcad.zip
external_mesa3d-c5030ac0ac15d3c91c4352789f94281da9a9dcad.tar.gz
external_mesa3d-c5030ac0ac15d3c91c4352789f94281da9a9dcad.tar.bz2
i965: Use typed foreach_in_list instead of foreach_list.
Acked-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp b/src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp
index 5f0b696..938ae43 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_live_variables.cpp
@@ -215,9 +215,7 @@ vec4_visitor::calculate_live_intervals()
* flow.
*/
int ip = 0;
- foreach_list(node, &this->instructions) {
- vec4_instruction *inst = (vec4_instruction *)node;
-
+ foreach_in_list(vec4_instruction, inst, &instructions) {
for (unsigned int i = 0; i < 3; i++) {
if (inst->src[i].file == GRF) {
int reg = inst->src[i].reg;