[Mesa-dev] [PATCH 2/5] i965/fs: Drop an unnecessary _safe on a list walk.

Eric Anholt eric at anholt.net
Tue Dec 11 13:42:59 PST 2012


---
 src/mesa/drivers/dri/i965/brw_fs.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index c520364..62800b1 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -1828,7 +1828,7 @@ fs_visitor::register_coalesce_2()
       int reg_to = inst->dst.reg;
       int reg_to_offset = inst->dst.reg_offset;
 
-      foreach_list_safe(node, &this->instructions) {
+      foreach_list(node, &this->instructions) {
 	 fs_inst *scan_inst = (fs_inst *)node;
 
 	 if (scan_inst->dst.file == GRF &&
-- 
1.7.10.4



More information about the mesa-dev mailing list