Mesa (master): i965/fs: Move a block out of a loop in live variables setup.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Jul 18 19:36:50 UTC 2012
Module: Mesa
Branch: master
Commit: 40cd60a315542f1b1f35ebab836b52716c131d6c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=40cd60a315542f1b1f35ebab836b52716c131d6c
Author: Eric Anholt <eric at anholt.net>
Date: Fri Jul 6 18:00:40 2012 -0700
i965/fs: Move a block out of a loop in live variables setup.
This was accidentally copy-and-pasted inside.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
.../drivers/dri/i965/brw_fs_live_variables.cpp | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp
index 46408da..40e7ae5 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp
@@ -192,11 +192,12 @@ fs_visitor::calculate_live_intervals()
use[reg] = ip;
}
- if (inst->dst.file == GRF) {
- int reg = inst->dst.reg;
+ }
- def[reg] = MIN2(def[reg], ip);
- }
+ if (inst->dst.file == GRF) {
+ int reg = inst->dst.reg;
+
+ def[reg] = MIN2(def[reg], ip);
}
ip++;
More information about the mesa-commit
mailing list