i965/fs: Recalculate live intervals in calculate_register_pressure().
authorMatt Turner <mattst88@gmail.com>
Wed, 26 Mar 2014 20:09:21 +0000 (13:09 -0700)
committerMatt Turner <mattst88@gmail.com>
Sat, 5 Apr 2014 16:44:54 +0000 (09:44 -0700)
commit26012c16737a8542316062ef17fa9a0b34e274b7
tree3124b670d64dd1141e13675c5fc2e95418a77eb4
parentc973e440d5b4057d93b4ce1298da77c3449c9f33
i965/fs: Recalculate live intervals in calculate_register_pressure().

Otherwise calling dump_instructions() after declaring a new fs_reg would
segfault when calculate_register_pressure()'s loop over reg walked off
the end of the virtual_grf_start[] array that calculate_live_intervals()
would have reallocated for you, if it had known there was a new
register.
src/mesa/drivers/dri/i965/brw_fs.cpp