From: peizhant <pei.zhan.tan@intel.com>
To: linux-kernel@vger.kernel.org, bob.j.paauwe@intel.com,
matthew.d.roper@intel.com
Cc: Tan Pei Zhan <pei.zhan.tan@intel.com>
Subject: [[PATCH]test/kms_atomic:Added allow_modeset flag] Signed-off-by: Tan Pei Zhan <pei.zhan.tan@intel.com>
Date: Tue, 28 Jun 2016 15:31:34 +0800 [thread overview]
Message-ID: <1467099094-18351-1-git-send-email-pei.zhan.tan@intel.com> (raw)
From: Tan Pei Zhan <pei.zhan.tan@intel.com>
Added DMS_MODE_ATOMIC_ALLOW_MODESET in do_atomic_commit function
---
tests/kms_atomic.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c
index f27ee46..b9259b3 100644
--- a/tests/kms_atomic.c
+++ b/tests/kms_atomic.c
@@ -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); \
}
--
2.5.0
next reply other threads:[~2016-06-28 7:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-28 7:31 peizhant [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-06-28 7:30 peizhant
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1467099094-18351-1-git-send-email-pei.zhan.tan@intel.com \
--to=pei.zhan.tan@intel.com \
--cc=bob.j.paauwe@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew.d.roper@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®