From d9ec63b1a0c41c96af676cd9d642bf622be1788f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 7 Jan 2011 19:59:00 +0000 Subject: intel_gpu_top: Include BLT ring Signed-off-by: Chris Wilson --- tools/intel_gpu_top.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tools/intel_gpu_top.c') diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c index a70d7a03..d586c65e 100644 --- a/tools/intel_gpu_top.c +++ b/tools/intel_gpu_top.c @@ -391,6 +391,9 @@ int main(int argc, char **argv) }, bsd6_ring = { .name = "bitstream", .mmio = 0x12030, + }, blt_ring = { + .name = "blitter", + .mmio = 0x22030, }; int i; @@ -408,8 +411,10 @@ int main(int argc, char **argv) ring_init(&render_ring); if (IS_GEN4(devid) || IS_IRONLAKE(devid)) ring_init(&bsd_ring); - if (IS_GEN6(devid)) + if (IS_GEN6(devid)) { ring_init(&bsd6_ring); + ring_init(&blt_ring); + } for (;;) { int j; @@ -422,6 +427,7 @@ int main(int argc, char **argv) ring_reset(&render_ring); ring_reset(&bsd_ring); ring_reset(&bsd6_ring); + ring_reset(&blt_ring); for (i = 0; i < SAMPLES_PER_SEC; i++) { if (IS_965(devid)) { @@ -436,6 +442,7 @@ int main(int argc, char **argv) ring_sample(&render_ring); ring_sample(&bsd_ring); ring_sample(&bsd6_ring); + ring_sample(&blt_ring); usleep(1000000 / SAMPLES_PER_SEC); } @@ -473,6 +480,7 @@ int main(int argc, char **argv) ring_print(&render_ring); ring_print(&bsd_ring); ring_print(&bsd6_ring); + ring_print(&blt_ring); printf("\n%30s %s\n", "task", "percent busy"); for (i = 0; i < max_lines; i++) { -- cgit v1.2.3