[PATCH i-g-t 2/3] drm-uapi/xe: Define topology types as indexes rather than masks

Dixit, Ashutosh ashutosh.dixit at intel.com
Tue Apr 9 17:31:02 UTC 2024


On Fri, 29 Mar 2024 08:30:57 -0700, Francois Dugast wrote:
>
> Align with kernel commit ca83f9d20171 ("drm/xe/uapi: Define topology \
> types as indexes rather than masks").
>
> This is not a functional change.

Matches defines in drm-xe-next:

Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>

> Signed-off-by: Francois Dugast <francois.dugast at intel.com>
> ---
>  include/drm-uapi/xe_drm.h | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/include/drm-uapi/xe_drm.h b/include/drm-uapi/xe_drm.h
> index 91ea92035..d8816df83 100644
> --- a/include/drm-uapi/xe_drm.h
> +++ b/include/drm-uapi/xe_drm.h
> @@ -518,9 +518,9 @@ struct drm_xe_query_topology_mask {
>	/** @gt_id: GT ID the mask is associated with */
>	__u16 gt_id;
>
> -#define DRM_XE_TOPO_DSS_GEOMETRY	(1 << 0)
> -#define DRM_XE_TOPO_DSS_COMPUTE		(1 << 1)
> -#define DRM_XE_TOPO_EU_PER_DSS		(1 << 2)
> +#define DRM_XE_TOPO_DSS_GEOMETRY	1
> +#define DRM_XE_TOPO_DSS_COMPUTE		2
> +#define DRM_XE_TOPO_EU_PER_DSS		4
>	/** @type: type of mask */
>	__u16 type;
>
> --
> 2.34.1
>


More information about the igt-dev mailing list