summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2015-11-11 20:25:11 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2015-11-16 15:35:28 +0200
commit4d8983bcdff43e95897031d7e1fef24170df5235 (patch)
tree81f44c1f0ef33df5cc2b20e39807ea99d2f143a6
parent29cd8a092e09bc72535d83d55b5800c3aa21440a (diff)
lib/kms: Pass fb_id=0 to setcrtc in kmstest_unset_all_crtcs()
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ä <ville.syrjala@linux.intel.com>
-rw-r--r--lib/igt_kms.c2
1 files changed, 1 insertions, 1 deletions
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);
}