[igt-dev] [PATCH i-g-t v3 1/2] tests/kms_lease: replacing drmModeAtomicCommit

Ananya Sharma ananya.sharma at intel.com
Fri Dec 24 16:17:43 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 0bf102a6..a749939e 100644
--- a/tests/kms_lease.c
+++ b/tests/kms_lease.c
@@ -486,7 +486,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_try_commit_atomic(&data->master.display, DRM_MODE_ATOMIC_TEST_ONLY, NULL);
 	igt_assert(ret == 0 || ret == -EINVAL);
 
 	ret = drmModeAtomicCommit(mcl.fd, req, DRM_MODE_ATOMIC_TEST_ONLY, NULL);
@@ -501,7 +501,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_try_commit_atomic(&data->master.display, DRM_MODE_ATOMIC_TEST_ONLY, NULL);
 	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