[igt-dev] [PATCH i-g-t 1/4] lib/i915/perf: fix intel_perf_devinfo gen field
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Mon Dec 28 03:19:37 UTC 2020
Inadvertently left this field uninitialized (or rather at the wrong 0
value).
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Fixes: 53f8f541caae20 ("lib: Add i915_perf library")
---
lib/i915/perf.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/i915/perf.c b/lib/i915/perf.c
index 53c0a9dcc..ef0f0b437 100644
--- a/lib/i915/perf.c
+++ b/lib/i915/perf.c
@@ -168,6 +168,7 @@ intel_perf_for_devinfo(uint32_t device_id,
* 2x6 does not have 2 samplers).
*/
perf->devinfo.devid = device_id;
+ perf->devinfo.gen = devinfo->gen;
perf->devinfo.revision = revision;
perf->devinfo.timestamp_frequency = timestamp_frequency;
perf->devinfo.gt_min_freq = gt_min_freq;
--
2.30.0.rc2
More information about the igt-dev
mailing list