intel/perf: use the new OA format for Gfx12.5+

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18893>
This commit is contained in:
Lionel Landwerlin
2021-06-25 13:08:47 +03:00
committed by Marge Bot
parent 02608c25ec
commit fdf602a545
4 changed files with 81 additions and 1 deletions

View File

@@ -109,7 +109,10 @@ anv_device_perf_open(struct anv_device *device, uint64_t metric_id)
properties[p++] = metric_id;
properties[p++] = DRM_I915_PERF_PROP_OA_FORMAT;
properties[p++] = I915_OA_FORMAT_A32u40_A4u32_B8_C8;
properties[p++] =
device->info->verx10 >= 125 ?
I915_OA_FORMAT_A24u40_A14u32_B8_C8 :
I915_OA_FORMAT_A32u40_A4u32_B8_C8;
properties[p++] = DRM_I915_PERF_PROP_OA_EXPONENT;
properties[p++] = 31; /* slowest sampling period */