diff options
author | Safayat Ullah <safayat@google.com> | 2022-09-13 14:12:34 +0000 |
---|---|---|
committer | Safayat Ullah <safayat@google.com> | 2022-12-08 11:03:17 +0000 |
commit | 020db8a4292d9e4f38f422718d93f80d6cb9f500 (patch) | |
tree | 7583c9f05e7faef45b4721acc00dbe48602fbade | |
parent | ead706b58eae587862d19d233b2539170d273e4e (diff) | |
download | igt-gpu-tools-020db8a4292d9e4f38f422718d93f80d6cb9f500.tar.gz |
Fix kms_flip failed tests due to Intel specific requirement.
4 subtests from kms_flip are failing- bo-too-big, bo-too-big-interruptible, flip-vs-fences, flip-vs-fences-interruptible
Root cause: Using Intel specific ioctl. LOCAL_I915_FORMAT_MOD_X_TILED, intel_get_pci_device.
Fix: Wrap the ioctl call with #if defined(USE_INTEL)
Bug: b/246476031
Test: Run kms_flip test
Change-Id: I9d65eef940c57f7b9b5d6589b6bf7e4df52904ed
-rwxr-xr-x | tests/kms_flip.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/kms_flip.c b/tests/kms_flip.c index 574d038cd..6d937e6c0 100755 --- a/tests/kms_flip.c +++ b/tests/kms_flip.c @@ -1245,14 +1245,21 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs, o->fb_width *= 2; tiling = LOCAL_DRM_FORMAT_MOD_NONE; - if (o->flags & TEST_FENCE_STRESS) + if (o->flags & TEST_FENCE_STRESS) { +#if defined(USE_INTEL) tiling = LOCAL_I915_FORMAT_MOD_X_TILED; +#else + igt_skip("Requires an intel device.\n"); +#endif + } /* 256 MB is usually the maximum mappable aperture, * (make it 4x times that to ensure failure) */ if (o->flags & TEST_BO_TOOBIG) { bo_size = 4*gem_mappable_aperture_size(); +#if defined(USE_INTEL) igt_require(bo_size < gem_global_aperture_size(drm_fd)); +#endif } o->fb_ids[0] = igt_create_fb(drm_fd, o->fb_width, o->fb_height, |