summaryrefslogtreecommitdiff
path: root/tests/i915
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-06-10 11:45:43 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2019-06-10 12:13:35 +0100
commit4c072238c784e6acb00634a80c3c55fb8358058b (patch)
treee58aadc624f3a79606d86eb0c82af048225f1224 /tests/i915
parentdb51cbba5a8f4856d6f56a61aa51fda6e239fa44 (diff)
i915/gem_ctx_engines: Skip trying to read a non-existent TIMESTAMP
The per-engine TIMESTAMP (at least at the offset I know about) only came into being with gen6. So skip the test on older gen as the results are garbage. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110874 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests/i915')
-rw-r--r--tests/i915/gem_ctx_engines.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/i915/gem_ctx_engines.c b/tests/i915/gem_ctx_engines.c
index 38ea34d2..3ecade41 100644
--- a/tests/i915/gem_ctx_engines.c
+++ b/tests/i915/gem_ctx_engines.c
@@ -419,6 +419,8 @@ static void independent(int i915)
int timeline = sw_sync_timeline_create();
uint32_t last, *map;
+ igt_require(gen >= 6); /* No per-engine TIMESTAMP on older gen */
+
{
struct drm_i915_gem_execbuffer2 execbuf = {
.buffers_ptr = to_user_pointer(&results),