Re: [Mesa-dev] [PATCH 1/2] i965/fs: Recalculate live intervals in calculate_register_pressure().

2014-03-29 Thread Matt Turner
On Sat, Mar 29, 2014 at 7:14 PM, Eric Anholt wrote: > Matt Turner writes: > >> 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_interva

Re: [Mesa-dev] [PATCH 1/2] i965/fs: Recalculate live intervals in calculate_register_pressure().

2014-03-29 Thread Eric Anholt
Matt Turner writes: > 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 ther

[Mesa-dev] [PATCH 1/2] i965/fs: Recalculate live intervals in calculate_register_pressure().

2014-03-28 Thread Matt Turner
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