Skip to contentSkip to conversation

Signed-off-by: Tan Pei Zhan <[email protected]>

KMS_ATOMIC_with_Modeset peizhant 1 participant 1 message Jun 28, 2016

lore
Share & tools
lore

peizhant

author
#0 lore raw

From: Tan Pei Zhan <[email protected]>

Added DMS_MODE_ATOMIC_ALLOW_MODESET in do_atomic_commit function

---
 tests/kms_atomic.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tests/kms_atomic.c +2 -2
index f27ee46..b9259b3 100644
@@ -238,7 +238,7 @@ static uint32_t blob_duplicate(int fd, uint32_t id_orig)
 	drmModeAtomicSetCursor(req, 0); \
 	crtc_populate_req(crtc, req); \
 	plane_populate_req(plane, req); \
-	do_atomic_commit((crtc)->state->desc->fd, req, 0); \
+	do_atomic_commit((crtc)->state->desc->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESET); \
 	crtc_check_current_state(crtc, plane, relax); \
 	plane_check_current_state(plane, relax); \
 }
@@ -255,7 +255,7 @@ static uint32_t blob_duplicate(int fd, uint32_t id_orig)
 #define plane_commit_atomic(plane, req, relax) { \
 	drmModeAtomicSetCursor(req, 0); \
 	plane_populate_req(plane, req); \
-	do_atomic_commit((plane)->state->desc->fd, req, 0); \
+	do_atomic_commit((plane)->state->desc->fd, req, DRM_MODE_ATOMIC_ALLOW_MODESETDRM); \
 	plane_check_current_state(plane, relax); \
 }
 
Signature · 1 line
2.5.0