[PATCH 5/6] drm/v3d: Use V3D_MAX_COUNTERS instead of V3D_PERFCNT_NUM

Iago Toral itoral at igalia.com
Thu May 9 06:11:23 UTC 2024


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


More information about the dri-devel mailing list