intel/perf: also add the oa timestamp shift on MTL

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 90c86fe63e ("intel: add MTL performance metrics")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21378>
This commit is contained in:
Lionel Landwerlin
2023-02-17 11:35:56 +02:00
committed by Marge Bot
parent 6d73841d34
commit 14266d3c2d
+1 -1
View File
@@ -717,7 +717,7 @@ oa_metrics_available(struct intel_perf_config *perf, int fd,
perf->i915_perf_version = i915_perf_version(fd);
/* TODO: We should query this from i915 */
if (intel_device_info_is_dg2(devinfo))
if (devinfo->verx10 >= 125)
perf->oa_timestamp_shift = 1;
perf->oa_timestamp_mask =