From 4d8983bcdff43e95897031d7e1fef24170df5235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Wed, 11 Nov 2015 20:25:11 +0200 Subject: [PATCH] lib/kms: Pass fb_id=0 to setcrtc in kmstest_unset_all_crtcs() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The setcrtc ioctl ignores the fb_id when there's no mode specified. So passing -1 doens't make much sense. When there is a more, -1 means to preserve the current fb. Signed-off-by: Ville Syrjälä --- lib/igt_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index 878e1fbe..52816449 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -824,7 +824,7 @@ void kmstest_unset_all_crtcs(int drm_fd, drmModeResPtr resources) int i, rc; for (i = 0; i < resources->count_crtcs; i++) { - rc = drmModeSetCrtc(drm_fd, resources->crtcs[i], -1, 0, 0, NULL, + rc = drmModeSetCrtc(drm_fd, resources->crtcs[i], 0, 0, 0, NULL, 0, NULL); igt_assert(rc == 0); }