From 902b754804ff76fbbf048ff889a95a4d7c0da5e6 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 29 Jan 2018 12:00:10 +0000 Subject: tests/perf: fix report validity check on gen10+ Signed-off-by: Lionel Landwerlin Testcase: igt/perf/buffer-fill & igt/perf/enable-disable & igt/perf/gen8-unprivileged-single-ctx-counters Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104658 Reviewed-by: Matthew Auld --- tests/perf.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/perf.c') diff --git a/tests/perf.c b/tests/perf.c index a173680c..15070827 100644 --- a/tests/perf.c +++ b/tests/perf.c @@ -473,12 +473,11 @@ oa_report_ctx_is_valid(uint32_t *report) return false; /* TODO */ } else if (IS_GEN8(devid)) { return report[0] & (1ul << 25); - } else if (IS_GEN9(devid)) { + } else if (AT_LEAST_GEN(devid, 9)) { return report[0] & (1ul << 16); } - /* Need to update this function for newer Gen. */ - igt_assert(!"reached"); + igt_assert(!"Please update this function for newer Gen"); } static uint32_t -- cgit v1.2.3