diff options
author | Robert Foss <robert.foss@collabora.com> | 2016-04-20 12:25:52 -0400 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-04-25 15:27:30 +0200 |
commit | 81864b55b0d3023711a090e75c68e4ea4a185ba2 (patch) | |
tree | baa7da1048d276abc240c31833d3f2cb3c5c4cae /tests | |
parent | 4aeed6e8295cd4961ecc47d44334943ad08d73af (diff) |
core_getversion: Only verify major version for i915.
This change mirrors the change in drm made by krh@redhat.com
on "Mon Apr 6 17:18:17 2009" on the drm branch intel_on_all_hw.
The assert(major < 1) is only needed for the legacy intel driver.
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/core_getversion.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/core_getversion.c b/tests/core_getversion.c index 02f17426..f6953b31 100644 --- a/tests/core_getversion.c +++ b/tests/core_getversion.c @@ -42,7 +42,9 @@ igt_simple_main igt_assert_neq(strlen(v->name), 0); igt_assert_neq(strlen(v->date), 0); igt_assert_neq(strlen(v->desc), 0); - igt_assert_lte(1, v->version_major); + if (is_i915_device(fd)) + igt_assert_lte(1, v->version_major); + drmFree(v); close(fd); } |