summaryrefslogtreecommitdiff
path: root/tests/perf.c
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-01-29 12:00:10 +0000
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-02-01 15:16:42 +0000
commit902b754804ff76fbbf048ff889a95a4d7c0da5e6 (patch)
treee52b8bd43b6d019b5e5caa7995d99d864caf2ebb /tests/perf.c
parent4452dcb4d8166cb3895ddc016267fd46c674b7f5 (diff)
tests/perf: fix report validity check on gen10+
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> 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 <matthew.auld@intel.com>
Diffstat (limited to 'tests/perf.c')
-rw-r--r--tests/perf.c5
1 files changed, 2 insertions, 3 deletions
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