From: Matt Turner Date: Sat, 12 Jul 2014 03:37:04 +0000 (-0700) Subject: i965/fs: Invalidate live intervals in opt_cse, not _local. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ca6b5d2e8a32644a5ddd6c6c0ec0193e6f7e772;p=mesa.git i965/fs: Invalidate live intervals in opt_cse, not _local. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_cse.cpp b/src/mesa/drivers/dri/i965/brw_fs_cse.cpp index 90a8a143691..92c7495b990 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; }