diff options
author | Jason Ekstrand <[email protected]> | 2014-09-26 16:08:52 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2014-09-30 10:29:15 -0700 |
commit | 4ddc25a8d4796316f0296eaa10eba26bd6dd1718 (patch) | |
tree | d9e82ae903dbbb37bfa2308ccac3daecd1b8b2dc /src/mesa | |
parent | 514fd1c55e617bb325979cbee4a89f0727c3b567 (diff) |
i965/fs: Properly calculate the number of instructions in calculate_register_pressure
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index b9bd94c3070..6ed3e95ef6e 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -3400,7 +3400,9 @@ fs_visitor::calculate_register_pressure() invalidate_live_intervals(); calculate_live_intervals(); - unsigned num_instructions = instructions.length(); + unsigned num_instructions = 0; + foreach_block(block, cfg) + num_instructions += block->instructions.length(); regs_live_at_ip = rzalloc_array(mem_ctx, int, num_instructions); |