diff options
author | Eric Anholt <[email protected]> | 2012-07-06 18:00:40 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-07-18 12:30:06 -0700 |
commit | 40cd60a315542f1b1f35ebab836b52716c131d6c (patch) | |
tree | 6c445f13d9b9f6bece99c69191e6b6a5176f04db /src/mesa/drivers/dri | |
parent | cd5cd85a43dc43f62274be72d3252503dfc88bab (diff) |
i965/fs: Move a block out of a loop in live variables setup.
This was accidentally copy-and-pasted inside.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/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 46408da7b79..40e7ae51590 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++; |