freedreno/fdperf: Use common device info helpers
authorRob Clark <robdclark@chromium.org>
Fri, 30 Jun 2023 14:50:11 +0000 (07:50 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 3 Jul 2023 14:45:09 +0000 (14:45 +0000)
commitb774d5f9d5e740b06590eed81c55cb0d5fbe59df
treef9bbfeab5d50feba0a4e5f3dc5d35a4643065829
parenta9c6f7ffdff88ddedaf5798a2b955610763b763b
freedreno/fdperf: Use common device info helpers

Manually constructing the chip-id will stop working with future devices.
And now that we get the generation from the device table, we can't be
sloppy about using a bogus dev_id.

Fixes: 00900b76e0f4 ("freedreno: Decouple GPU gen from gpu_id/chip_id")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23953>
src/freedreno/perfcntrs/fdperf.c
src/freedreno/perfcntrs/meson.build