[igt-dev] [PATCH i-g-t 2/4] lib/i915/perf: fill up device name

Lionel Landwerlin lionel.g.landwerlin at intel.com
Mon Dec 28 03:19:38 UTC 2020


Forgot to initialize this field.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 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



More information about the igt-dev mailing list