[igt-dev] [PATCH i-g-t 1/2] lib/drm_fdinfo: Check for compute engines when parsing

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Mon Apr 3 10:12:59 UTC 2023


On 31/03/2023 20:59, Umesh Nerlige Ramappa wrote:
> DG2 has compute engine support. When parsing the fdinfo for available engines,
> also check for compute. This fixes drm_fdinfo at basic for platforms where compute
> is present.
> 
> Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa at intel.com>
> ---
>   lib/igt_drm_fdinfo.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/lib/igt_drm_fdinfo.c b/lib/igt_drm_fdinfo.c
> index 250d9e89..5beb30b0 100644
> --- a/lib/igt_drm_fdinfo.c
> +++ b/lib/igt_drm_fdinfo.c
> @@ -60,6 +60,7 @@ static int parse_engine(char *line, struct drm_client_fdinfo *info,
>   		"copy",
>   		"video",
>   		"video-enhance",
> +		"compute",
>   	};
>   	ssize_t name_len;
>   	char *name, *p;

Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Regards,

Tvrtko


More information about the igt-dev mailing list