The Performance Counters enum used to identify the index of each performance counter and provide the total number of performance counters (V3D_PERFCNT_NUM). But, this enum is only valid for V3D 4.2, not for V3D 7.1. As we implemented a new flexible structure to retrieve performance counters information, we can deprecate this enum.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -603,6 +603,16 @@ struct drm_v3d_submit_cpu { · 602 unmodified lines | |||
| 603 | __u64 extensions; | 603 | __u64 extensions; |
| 604 | }; | 604 | }; |
| 605 | 605 | ||
| 606 | /* The performance counters index represented by this enum are deprecated and | ||
| 607 | * must no longer be used. These counters are only valid for V3D 4.2. | ||
| 608 | * | ||
| 609 | * In order to check for performance counter information, | ||
| 610 | * use DRM_IOCTL_V3D_PERFMON_GET_COUNTER. | ||
| 611 | * | ||
| 612 | * Don't use V3D_PERFCNT_NUM to retrieve the maximum number of performance | ||
| 613 | * counters. You should use DRM_IOCTL_V3D_GET_PARAM with the following | ||
| 614 | * parameter: DRM_V3D_PARAM_MAX_PERF_COUNTERS. | ||
| 615 | */ | ||
| 606 | enum { | 616 | enum { |
| 607 | V3D_PERFCNT_FEP_VALID_PRIMTS_NO_PIXELS, | 617 | V3D_PERFCNT_FEP_VALID_PRIMTS_NO_PIXELS, |
| 608 | V3D_PERFCNT_FEP_VALID_PRIMS, | 618 | V3D_PERFCNT_FEP_VALID_PRIMS, |