diff options
author | Matt Turner <[email protected]> | 2014-03-26 13:09:21 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-04-05 09:44:54 -0700 |
commit | 26012c16737a8542316062ef17fa9a0b34e274b7 (patch) | |
tree | 3124b670d64dd1141e13675c5fc2e95418a77eb4 | |
parent | c973e440d5b4057d93b4ce1298da77c3449c9f33 (diff) |
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.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 713e47761d0..c88f7c9b7b1 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -3294,6 +3294,7 @@ fs_visitor::assign_binding_table_offsets() void fs_visitor::calculate_register_pressure() { + invalidate_live_intervals(); calculate_live_intervals(); int num_instructions = 0; |