diff options
author | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-07-05 14:13:22 +0200 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@linux.intel.com> | 2017-07-10 09:05:01 +0200 |
commit | 99c4c527214668337dd4495b495ec3d6c83ee280 (patch) | |
tree | 158dae7d7789f89d85afb6f6e9d27ec81b3fffc7 /tests/kms_atomic_transition.c | |
parent | 2e6819cd722611b41f67261afd7b060902af08fe (diff) |
tests/kms_atomic_transition: Only request fence on enabled pipes
Trying to set a fence on disabled pipes will be rejected by the kernel:
[ 1275.865029] [drm:drm_atomic_check_only [drm]] [CRTC:39:pipe B] requesting event but off
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99911
Acked-by: Gustavo Padovan <gustavo.padovan@collabora.com>
Diffstat (limited to 'tests/kms_atomic_transition.c')
-rw-r--r-- | tests/kms_atomic_transition.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c index 2b56eef6..a2470c0c 100644 --- a/tests/kms_atomic_transition.c +++ b/tests/kms_atomic_transition.c @@ -717,11 +717,11 @@ static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblock igt_plane_set_fb(plane, &fbs[1]); igt_fb_set_size(&fbs[1], plane, mode->hdisplay, mode->vdisplay); igt_plane_set_size(plane, mode->hdisplay, mode->vdisplay); + + if (fencing) + igt_pipe_request_out_fence(&display->pipes[i]); } else igt_plane_set_fb(plane, NULL); - - if(fencing) - igt_pipe_request_out_fence(&display->pipes[i]); } /* |