diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-02-07 17:18:12 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-02-07 17:18:12 +0100 |
commit | f63e070b469d96be2bf470eae63a16b4a9e9cc0d (patch) | |
tree | 206b3e42f38c41a9f0880d67e681c8386edc292e /tests/kms_frontbuffer_tracking.c | |
parent | d2964b5c4da338e4f82fd34f204a97583ef689bf (diff) |
kms_frontbuffer_tracking: Fix tests with the new atomic reality.
Stride change through page flip is now allowed.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_frontbuffer_tracking.c')
-rw-r--r-- | tests/kms_frontbuffer_tracking.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 5f713e93..4f4848bc 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -3024,10 +3024,13 @@ static void badstride_subtest(const struct test_mode *t) set_mode_for_params(params); do_assertions(0); - /* We can't use the page flip IOCTL to flip to a buffer with a different - * stride. */ + /* + * We previously couldn't use the page flip IOCTL to flip to a buffer + * with a different stride. With the atomic page flip helper we can, + * so allow page flip to fail and succeed. + */ rc = drmModePageFlip(drm.fd, params->crtc_id, wide_fb.fb_id, 0, NULL); - igt_assert(rc == -EINVAL); + igt_assert(rc == -EINVAL || rc == 0); do_assertions(0); igt_remove_fb(drm.fd, &wide_fb); @@ -3089,9 +3092,12 @@ static void stridechange_subtest(const struct test_mode *t) set_prim_plane_for_params(params); do_assertions(0); - /* We just can't page flip with a new stride. */ + /* + * Try to set a new stride. with the page flip api. This is allowed + * with the atomic page flip helper, but not with the legacy page flip. + */ rc = drmModePageFlip(drm.fd, params->crtc_id, new_fb.fb_id, 0, NULL); - igt_assert(rc == -EINVAL); + igt_assert(rc == -EINVAL || rc == 0); do_assertions(0); igt_remove_fb(drm.fd, &new_fb); |