[Intel-gfx] [PATCH i-g-t 3/5] tests/kms_atomic_transition: Only request fence on enabled pipes
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Thu Jul 6 07:11:45 UTC 2017
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 at linux.intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99911
---
tests/kms_atomic_transition.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c
index 2b56eef66b7b..a2470c0c3571 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]);
}
/*
--
2.11.0
More information about the Intel-gfx
mailing list