[igt-dev] [PATCH i-g-t] intel_gpu_top: Add display name for compute engine class

Christopher Snowhill chris at kode54.net
Wed Jan 11 13:22:55 UTC 2023


Add label and abbreviated display name for the compute engine class.

Signed-off-by: Christopher Snowhill <kode54 at gmail.com>
---
 tools/intel_gpu_top.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/intel_gpu_top.c b/tools/intel_gpu_top.c
index 6de8a164..08306f51 100644
--- a/tools/intel_gpu_top.c
+++ b/tools/intel_gpu_top.c
@@ -281,6 +281,8 @@ static const char *class_display_name(unsigned int class)
 		return "Video";
 	case I915_ENGINE_CLASS_VIDEO_ENHANCE:
 		return "VideoEnhance";
+	case I915_ENGINE_CLASS_COMPUTE:
+		return "Compute";
 	default:
 		return "[unknown]";
 	}
@@ -297,6 +299,8 @@ static const char *class_short_name(unsigned int class)
 		return "VCS";
 	case I915_ENGINE_CLASS_VIDEO_ENHANCE:
 		return "VECS";
+	case I915_ENGINE_CLASS_COMPUTE:
+		return "CCS";
 	default:
 		return "UNKN";
 	}
-- 
2.39.0


More information about the igt-dev mailing list