diff options
author | Mihail Atanassov <Mihail.Atanassov@arm.com> | 2019-07-23 14:22:54 +0000 |
---|---|---|
committer | Simon Ser <simon.ser@intel.com> | 2019-07-23 17:28:04 +0300 |
commit | ab5871ca3a207420682f84d561dc17774dcd7e0e (patch) | |
tree | e88b0038214ec33292d3941a9d6405ae9381f3aa /tests/kms_addfb_basic.c | |
parent | 1a5b48671e0863cb723e3d0239e54c828360dc99 (diff) |
tests/kms_addfb_basic: Require an intel card for tests using tiling
Not skipping the affected tests causes all the rest to fail on
non-Intel drivers.
Signed-off-by: Mihail Atanassov <mihail.atanassov@arm.com>
Reviewed-by: Simon Ser <simon.ser@intel.com>
Diffstat (limited to 'tests/kms_addfb_basic.c')
-rw-r--r-- | tests/kms_addfb_basic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/kms_addfb_basic.c b/tests/kms_addfb_basic.c index 20dfd4f2..666e7165 100644 --- a/tests/kms_addfb_basic.c +++ b/tests/kms_addfb_basic.c @@ -131,6 +131,7 @@ static void invalid_tests(int fd) } igt_subtest("clobberred-modifier") { + igt_require_intel(fd); f.flags = 0; f.modifier[0] = 0; gem_set_tiling(fd, gem_bo, I915_TILING_X, 512*4); @@ -302,6 +303,7 @@ static void tiling_tests(int fd) igt_subtest_group { igt_fixture { + igt_require_intel(fd); tiled_x_bo = igt_create_bo_with_dimensions(fd, 1024, 1024, DRM_FORMAT_XRGB8888, LOCAL_I915_FORMAT_MOD_X_TILED, 1024*4, NULL, NULL, NULL); @@ -447,6 +449,7 @@ static void size_tests(int fd) } igt_subtest("bo-too-small-due-to-tiling") { + igt_require_intel(fd); gem_set_tiling(fd, gem_bo_small, I915_TILING_X, 1024*4); igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f) == -1 && errno == EINVAL); @@ -498,6 +501,7 @@ static void addfb25_tests(int fd) igt_subtest_group { igt_fixture { + igt_require_intel(fd); gem_set_tiling(fd, gem_bo, I915_TILING_X, 1024*4); igt_require_fb_modifiers(fd); } |