43 lines
1.1 KiB
Diff
43 lines
1.1 KiB
Diff
From 250a5ae2a5caa28911deb1028143d0c9ea4fdf88 Mon Sep 17 00:00:00 2001
|
|
From: Yannick Fertre <yannick.fertre@st.com>
|
|
Date: Fri, 24 Apr 2020 15:41:17 +0200
|
|
Subject: [PATCH 2/2] tests/modetest: close crtc
|
|
|
|
To test several configuration of crtc, it must be closed at the end
|
|
of modetest test (with/without atomic mode).
|
|
|
|
Signed-off-by: Yannick Fertre <yannick.fertre@st.com>
|
|
---
|
|
tests/modetest/modetest.c | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
|
|
index 26cd9d6..7094762 100644
|
|
--- a/tests/modetest/modetest.c
|
|
+++ b/tests/modetest/modetest.c
|
|
@@ -2182,6 +2182,10 @@ int main(int argc, char **argv)
|
|
}
|
|
|
|
atomic_clear_FB(&dev, plane_args, plane_count);
|
|
+
|
|
+ for (i = 0; i < count; i++)
|
|
+ drmModeSetCrtc(dev.fd, dev.resources->crtcs[i].crtc->crtc_id,
|
|
+ 0, 0, 0, 0, 0, NULL);
|
|
}
|
|
|
|
drmModeAtomicFree(dev.req);
|
|
@@ -2220,6 +2224,10 @@ int main(int argc, char **argv)
|
|
|
|
if (count)
|
|
clear_mode(&dev);
|
|
+
|
|
+ for (i = 0; i < count; i++)
|
|
+ drmModeSetCrtc(dev.fd, dev.resources->crtcs[i].crtc->crtc_id,
|
|
+ 0, 0, 0, 0, 0, NULL);
|
|
}
|
|
}
|
|
|
|
--
|
|
2.7.4
|
|
|