diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-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++; |