summaryrefslogtreecommitdiff
path: root/tests/kms_flip.c
diff options
context:
space:
mode:
authorAurabindo Pillai <aurabindo.pillai@amd.com>2021-09-27 12:07:00 -0400
committerRodrigo Siqueira <Rodrigo.Siqueira@amd.com>2021-09-28 10:41:00 -0400
commitcc27789ea0a79b8d052c6728509ec8dd401da347 (patch)
treea902fc689e21a7a44492be08367fb8c4228d9381 /tests/kms_flip.c
parent2f4e6430a97f04284d1cafb1479e7c1b0b2d596a (diff)
tests/kms_flip : skip subtest bo-too-big
[Why] The rationale of the test does not hold true for AMD hardware. The aperture size calculation has an upper bound check which is done through i915 specific IOCTL. Hence this part of subtest must be moved out of the platform agnostic tests. Moreover, AMD hardware supports buffers larger than aperture size. [How] Skip the bo-too-big subtest unless its run on i915 as the test fails on AMD, VKMS and VC4 Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Acked-by: Petri Latvala <petri.latvala@intel.com> Tested-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Diffstat (limited to 'tests/kms_flip.c')
-rwxr-xr-xtests/kms_flip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 54137871..20112de1 100755
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1290,6 +1290,7 @@ static void __run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,
/* 256 MB is usually the maximum mappable aperture,
* (make it 4x times that to ensure failure) */
if (o->flags & TEST_BO_TOOBIG) {
+ igt_skip_on(!is_i915_device(drm_fd));
bo_size = 4*gem_mappable_aperture_size(drm_fd);
igt_require(bo_size < gem_global_aperture_size(drm_fd));
}