Mesa (master): i965/fs: Print the maximum register pressure.
Matt Turner
mattst88 at kemper.freedesktop.org
Tue Jan 21 22:26:43 UTC 2014
Module: Mesa
Branch: master
Commit: 413622fbefb63c54d331ce5d708479ab847e6709
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=413622fbefb63c54d331ce5d708479ab847e6709
Author: Matt Turner <mattst88 at gmail.com>
Date: Sat Dec 14 18:37:16 2013 -0800
i965/fs: Print the maximum register pressure.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/drivers/dri/i965/brw_fs.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 181a939..4a96126 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
More information about the mesa-commit
mailing list