diff options
author | Matt Turner <mattst88@gmail.com> | 2014-06-24 16:31:38 -0700 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2014-07-01 08:55:51 -0700 |
commit | 266109736a9a69c3fdbe49fe1665a7a63c5cc122 (patch) | |
tree | b3fa310a9a6a5b59c77af877b513f427d3135c64 /src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp | |
parent | c5030ac0ac15d3c91c4352789f94281da9a9dcad (diff) |
i965: Use typed foreach_in_list_safe instead of foreach_list_safe.
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.cpp | 4 |
1 files changed, 1 insertions, 3 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 a048b3dc0e5..5ddd6e82e98 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_vector_splitting.cpp @@ -336,9 +336,7 @@ brw_do_vector_splitting(exec_list *instructions) visit_list_elements(&refs, instructions); /* Trim out variables we can't split. */ - foreach_list_safe(node, &refs.variable_list) { - variable_entry *entry = (variable_entry *)node; - + foreach_in_list_safe(variable_entry, entry, &refs.variable_list) { if (debug) { fprintf(stderr, "vector %s@%p: whole_access %d\n", entry->var->name, (void *) entry->var, |