[igt-dev] [PATCH i-g-t] tests/kms_lease:Replacing the call with equivalent igt wrapper.
Ananya Sharma
ananya.sharma at intel.com
Wed Feb 9 07:04:11 UTC 2022
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