[igt-dev] [PATCH i-g-t 2/2] tests/kms_lease: replacing drmModeAtomicCommit
Ananya Sharma
ananya.sharma at intel.com
Mon Dec 20 09:41:53 UTC 2021
Signed-off-by: Ananya Sharma <ananya.sharma at intel.com>
---
tests/kms_lease.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_lease.c b/tests/kms_lease.c
index c5c88e14..db433958 100644
--- a/tests/kms_lease.c
+++ b/tests/kms_lease.c
@@ -477,7 +477,7 @@ static void atomic_implicit_crtc(data_t *data)
igt_assert(ret >= 0);
/* sanity check */
- ret = drmModeAtomicCommit(data->master.fd, req, DRM_MODE_ATOMIC_TEST_ONLY, NULL);
+ ret = igt_display_commit2(&data->master.display, COMMIT_ATOMIC);
igt_assert(ret == 0 || ret == -EINVAL);
ret = drmModeAtomicCommit(mcl.fd, req, DRM_MODE_ATOMIC_TEST_ONLY, NULL);
@@ -492,7 +492,7 @@ static void atomic_implicit_crtc(data_t *data)
igt_assert(ret >= 0);
/* sanity check */
- ret = drmModeAtomicCommit(data->master.fd, req, DRM_MODE_ATOMIC_TEST_ONLY, NULL);
+ ret = igt_display_commit2(&data->master.display, COMMIT_ATOMIC);
igt_assert(ret == 0 || ret == -EINVAL);
ret = drmModeAtomicCommit(mcl.fd, req, DRM_MODE_ATOMIC_TEST_ONLY, NULL);
--
2.25.1
More information about the igt-dev
mailing list