Re: [igt-dev] [PATCH i-g-t 2/4] lib/i915/perf: fill up device name
From: Umesh Nerlige Ramappa <hidden>
Date: 2021-01-07 00:09:25
From: Umesh Nerlige Ramappa <hidden>
Date: 2021-01-07 00:09:25
On Mon, Dec 28, 2020 at 05:19:38AM +0200, Lionel Landwerlin wrote:
Forgot to initialize this field. Signed-off-by: Lionel Landwerlin <redacted>
Reviewed-by: Umesh Nerlige Ramappa <redacted> Thanks, Umesh
--- lib/i915/perf.c | 5 +++++ 1 file changed, 5 insertions(+)diff --git a/lib/i915/perf.c b/lib/i915/perf.c index ef0f0b437..f30833787 100644 --- a/lib/i915/perf.c +++ b/lib/i915/perf.c@@ -174,6 +174,11 @@ intel_perf_for_devinfo(uint32_t device_id,perf->devinfo.gt_min_freq = gt_min_freq; perf->devinfo.gt_max_freq = gt_max_freq; + if (devinfo->codename) { + snprintf(perf->devinfo.devname, sizeof(perf->devinfo.devname), + "%s", devinfo->codename); + } + /* On Gen11+ the equations from the xml files expect an 8bits * mask per subslice, versus only 3bits on prior Gens. */ -- 2.30.0.rc2
_______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev