projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd5cd85
)
i965/fs: Move a block out of a loop in live variables setup.
author
Eric Anholt
<eric@anholt.net>
Sat, 7 Jul 2012 01:00:40 +0000
(18:00 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 18 Jul 2012 19:30:06 +0000
(12:30 -0700)
This was accidentally copy-and-pasted inside.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_live_variables.cpp
patch
|
blob
|
history
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 46408da7b794aff64f7a87a22c8aed5b94d94433..40e7ae5159027f84065d5acce6cbd130c0825125 100644
(file)
--- 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++;