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>
(cherry picked from commit 14266d3c2d)
This commit is contained in:
Lionel Landwerlin 2023-02-17 11:35:56 +02:00 committed by Dylan Baker
parent f5a40f4d23
commit af1ae57d15
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@
"description": "intel/perf: also add the oa timestamp shift on MTL",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "90c86fe63e94df7719081f86ebee4851ab3fd341"
},

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 =