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

Kamil Konieczny kamil.konieczny at linux.intel.com
Fri Feb 17 14:37:12 UTC 2023


Hi Christopher,

Sidenote: please decide which is your main e-mail address and
if it is different from s-o-b add From: line at begin like:

From: Christopher Snowhill <kode54 at gmail.com>

On 2023-01-11 at 05:22:55 -0800, Christopher Snowhill wrote:
> Add label and abbreviated display name for the compute engine class.
> 
> Signed-off-by: Christopher Snowhill <kode54 at gmail.com>

Patch itself lgtm,

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

Regards,
Kamil

> ---
>  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