El mié, 08-05-2024 a las 11:30 -0300, Maíra Canal escribió: > V3D_PERFCNT_NUM represents the maximum number of performance counters > for V3D 4.2, but not for V3D 7.1. This means that, if we use > V3D_PERFCNT_NUM, we might go out-of-bounds on V3D 7.1. > > Therefore, use the number of performance counters on V3D 7.1 as the > maximum number of counters. This will allow us to create arrays on > the > stack with reasonable size. Note that userspace must use the value > provided by DRM_V3D_PARAM_V3D_MAX_PERF_COUNTERS. This should be DRM_V3D_PARAM_MAX_PERF_COUNTERS. Iago