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.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -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 | ||