History

drm/xe/uapi: Define topology types as indexes rather than masks

The topology type is an index (not a mask) so define the values like other indexes instead of using powers of 2. This is also to make clear that the next type can use value 3. This commit does not change the existing values so it does not break compatibility.

Francois Dugast committed 2 years ago

Commit ca83f9d1 parent d62753a1 file · +3 −3Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/drm/xe_drm.h+3−3
@@ -518,9 +518,9 @@ struct drm_xe_query_topology_mask { · 517 unmodified lines
518 /** @gt_id: GT ID the mask is associated with */518 /** @gt_id: GT ID the mask is associated with */
519 __u16 gt_id;519 __u16 gt_id;
520 520
521#define DRM_XE_TOPO_DSS_GEOMETRY (1 << 0)521#define DRM_XE_TOPO_DSS_GEOMETRY 1
522#define DRM_XE_TOPO_DSS_COMPUTE (1 << 1)522#define DRM_XE_TOPO_DSS_COMPUTE 2
523#define DRM_XE_TOPO_EU_PER_DSS (1 << 2)523#define DRM_XE_TOPO_EU_PER_DSS 4
524 /** @type: type of mask */524 /** @type: type of mask */
525 __u16 type;525 __u16 type;
526 526