[Mesa-dev] [PATCH 2/4] i965/fs: Invalidate live intervals in opt_cse, not _local.

Matt Turner mattst88 at gmail.com
Fri Jul 11 20:49:59 PDT 2014


---
 src/mesa/drivers/dri/i965/brw_fs_cse.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
index 43f2e19..d435d84 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp
@@ -307,9 +307,6 @@ fs_visitor::opt_cse_local(bblock_t *block)
 
    ralloc_free(cse_ctx);
 
-   if (progress)
-      invalidate_live_intervals();
-
    return progress;
 }
 
@@ -327,5 +324,8 @@ fs_visitor::opt_cse()
       progress = opt_cse_local(block) || progress;
    }
 
+   if (progress)
+      invalidate_live_intervals();
+
    return progress;
 }
-- 
1.8.5.5



More information about the mesa-dev mailing list