summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.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_fs_vector_splitting.cpp
parentbc2fbbafd216676ccc7c3abd794ecb7dd1fa631f (diff)
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_fs_vector_splitting.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
index a9125cad8f9..a048b3dc0e5 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp
@@ -121,8 +121,7 @@ ir_vector_reference_visitor::get_variable_entry(ir_variable *var)
break;
}
- foreach_list(node, &this->variable_list) {
- variable_entry *entry = (variable_entry *)node;
+ foreach_in_list(variable_entry, entry, &variable_list) {
if (entry->var == var)
return entry;
}
@@ -219,8 +218,7 @@ ir_vector_splitting_visitor::get_splitting_entry(ir_variable *var)
if (!var->type->is_vector())
return NULL;
- foreach_list(node, &*this->variable_list) {
- variable_entry *entry = (variable_entry *)node;
+ foreach_in_list(variable_entry, entry, variable_list) {
if (entry->var == var) {
return entry;
}
@@ -360,8 +358,7 @@ brw_do_vector_splitting(exec_list *instructions)
/* Replace the decls of the vectors to be split with their split
* components.
*/
- foreach_list(node, &refs.variable_list) {
- variable_entry *entry = (variable_entry *)node;
+ foreach_in_list(variable_entry, entry, &refs.variable_list) {
const struct glsl_type *type;
type = glsl_type::get_instance(entry->var->type->base_type, 1, 1);