summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-12-14 18:37:16 -0800
committerMatt Turner <[email protected]>2014-01-21 14:20:44 -0800
commit413622fbefb63c54d331ce5d708479ab847e6709 (patch)
treea476eaf96d17f7a433d201cf97e3025813762de9 /src/mesa/drivers
parent391eaa59bd2b71078a28ff34dd3d4eed470653ee (diff)
i965/fs: Print the maximum register pressure.
Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp4
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 181a9393b8c..4a96126bac5 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2946,13 +2946,15 @@ fs_visitor::dump_instructions()
{
calculate_register_pressure();
- int ip = 0;
+ int ip = 0, max_pressure = 0;
foreach_list(node, &this->instructions) {
backend_instruction *inst = (backend_instruction *)node;
+ max_pressure = MAX2(max_pressure, regs_live_at_ip[ip]);
printf("{%3d} %4d: ", regs_live_at_ip[ip], ip);
dump_instruction(inst);
++ip;
}
+ printf("Maximum %3d registers live at once.\n", max_pressure);
}
void