diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-02-03 09:34:37 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-02-03 09:37:17 +0100 |
commit | ed86fd9bb5f9a7e9a1da617ec96d2a0bdbd52e55 (patch) | |
tree | 6fd8fff206f7aae710d4b6fb20a55124c80384df /tests/kms_atomic_transition.c | |
parent | 6200c7efc95df6e2aafdb67aecdc341ccff3443f (diff) |
kms_atomic_transition: Do not use vblank->reserved.
I used it for prototyping a patch locally, was never meant to be
upstreamed without upstream support.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_atomic_transition.c')
-rw-r--r-- | tests/kms_atomic_transition.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c index f284cce9..ccd7268e 100644 --- a/tests/kms_atomic_transition.c +++ b/tests/kms_atomic_transition.c @@ -512,7 +512,6 @@ static void commit_display(igt_display_t *display, unsigned event_mask, bool non char buf[32]; struct drm_event *e = (void *)buf; struct drm_event_vblank *vblank = (void *)buf; - uint32_t crtc_id, pipe = I915_MAX_PIPES; igt_set_timeout(3, "Timed out while reading drm_fd\n"); ret = read(display->drm_fd, buf, sizeof(buf)); @@ -523,17 +522,7 @@ static void commit_display(igt_display_t *display, unsigned event_mask, bool non igt_assert(ret >= 0); igt_assert_eq(e->type, DRM_EVENT_FLIP_COMPLETE); - crtc_id = vblank->reserved; - if (crtc_id) { - for_each_pipe(display, pipe) - if (display->pipes[pipe].crtc_id == crtc_id) - break; - - igt_assert_lt(pipe, display->n_pipes); - - igt_debug("Retrieved vblank seq: %u on %u/%u\n", vblank->sequence, vblank->reserved, pipe); - } else - igt_debug("Retrieved vblank seq: %u on unk/unk\n", vblank->sequence); + igt_debug("Retrieved vblank seq: %u on unk/unk\n", vblank->sequence); num_events--; } |