intel/perf: Extend intel_perf_query_result_read_gt_frequency() to gfx 20

BSpec 62720 states that the previous and current offsets remains the
same as previous gfx versions.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29899>
This commit is contained in:
José Roberto de Souza
2024-06-03 12:16:49 -07:00
committed by Marge Bot
parent 0a6fe638f3
commit 2d29dee889

View File

@@ -1166,6 +1166,7 @@ intel_perf_query_result_read_gt_frequency(struct intel_perf_query_result *result
case 9:
case 11:
case 12:
case 20:
result->gt_frequency[0] = GET_FIELD(start, GFX9_RPSTAT0_CURR_GT_FREQ) * 50ULL / 3ULL;
result->gt_frequency[1] = GET_FIELD(end, GFX9_RPSTAT0_CURR_GT_FREQ) * 50ULL / 3ULL;
break;