[igt-dev] [PATCH i-g-t] intel_gpu_top: enable bsd6_ring on gen6 and later

Rinat Ibragimov ibragimovrinat at mail.ru
Tue Mar 27 21:48:36 UTC 2018


Rather than testing for each gen explicitly, sample bsd6_ring on
everything starting from gen6. This change makes intel_gpu_top to show
"bitstream busy" metric on the newer hardware too.

Signed-off-by: Rinat Ibragimov <ibragimovrinat at mail.ru>
---
 tools/intel_gpu_top.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 098e6ce3..ab1e71e7 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -516,7 +516,7 @@ int main(int argc, char **argv)
 	ring_init(&render_ring);
 	if (IS_GEN4(devid) || IS_GEN5(devid))
 		ring_init(&bsd_ring);
-	if (IS_GEN6(devid) || IS_GEN7(devid)) {
+	if (AT_LEAST_GEN(devid, 6)) {
 		ring_init(&bsd6_ring);
 		ring_init(&blt_ring);
 	}
-- 
2.16.2



More information about the igt-dev mailing list