summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-06-25 10:51:30 -0700
committerMatt Turner <[email protected]>2014-07-01 08:55:51 -0700
commitd6bb8bb7ce50dfec83e6be88fc21bb63315d516a (patch)
tree6e60593a9186998cc0820f15ac706936c7a2f527 /src/mesa
parent22cd9173295e2212e355db514bfc52138d03079d (diff)
mesa: Add and use foreach_list_typed_safe.
Acked-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/intel_mipmap_tree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index a45f1dd0404..07e798264a4 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -1506,9 +1506,7 @@ intel_miptree_all_slices_resolve(struct brw_context *brw,
{
bool did_resolve = false;
- foreach_list_safe(node, &mt->hiz_map) {
- struct intel_resolve_map *map = (struct intel_resolve_map *)node;
-
+ foreach_list_typed_safe(struct intel_resolve_map, map, link, &mt->hiz_map) {
if (map->need != need)
continue;