summaryrefslogtreecommitdiff
path: root/tests/kms_properties.c
diff options
context:
space:
mode:
authorStanislav Lisovskiy <stanislav.lisovskiy@intel.com>2018-11-28 15:03:34 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-12-11 10:08:54 +0100
commit3b52e8a5809a4e860350c59476a456745cd9fee0 (patch)
tree4e347a7c2a6d6910ba2d7034d771af641488d78a /tests/kms_properties.c
parent4579ac1d445cf39f6de474071b20db790db575bd (diff)
Allow a full modeset in kms_properties atomic case
Otherwise we are getting EINVAL as drm requires it at some point. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108642 Signed-off-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com> Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Diffstat (limited to 'tests/kms_properties.c')
-rw-r--r--tests/kms_properties.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_properties.c b/tests/kms_properties.c
index 82d28e9b..eb9cbdda 100644
--- a/tests/kms_properties.c
+++ b/tests/kms_properties.c
@@ -100,7 +100,7 @@ static void max_bpc_prop_test(int fd, uint32_t id, uint32_t type, drmModePropert
ret = drmModeAtomicAddProperty(req, id, prop_id, i);
igt_assert(ret >= 0);
- ret = drmModeAtomicCommit(fd, req, DRM_MODE_ATOMIC_TEST_ONLY, NULL);
+ ret = drmModeAtomicCommit(fd, req, DRM_MODE_ATOMIC_TEST_ONLY | DRM_MODE_ATOMIC_ALLOW_MODESET, NULL);
igt_assert_eq(ret, 0);
}
}