diff options
author | Hoegeun Kwon <hoegeun.kwon@samsung.com> | 2017-03-02 15:34:55 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2017-03-07 20:44:55 -0800 |
commit | e621f48fe4cb32d8cc8bf1964e62ed66c0a156f5 (patch) | |
tree | c554b842c6626106b6620fcff798b2adec0eefea | |
parent | d71cbccb4890bd6c2cc71855ee655956ee204e56 (diff) | |
download | libdrm-e621f48fe4cb32d8cc8bf1964e62ed66c0a156f5.tar.gz libdrm-e621f48fe4cb32d8cc8bf1964e62ed66c0a156f5.tar.bz2 libdrm-e621f48fe4cb32d8cc8bf1964e62ed66c0a156f5.zip |
ipptest: Add the set crtc for display mode
Added the modeSetCrtc func for display mode test of ipptest.
Change-Id: If2d51e0be6b6302dc0c4931ee5b73dd4dbe483c6
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
-rw-r--r-- | tests/ipptest/fimc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ipptest/fimc.c b/tests/ipptest/fimc.c index 73de30e1..dc19d352 100644 --- a/tests/ipptest/fimc.c +++ b/tests/ipptest/fimc.c @@ -841,6 +841,16 @@ void fimc_m2m_set_mode(struct device *dev, struct connector *c, int count, goto err_ipp_quque_close; } + /* Set crtc */ + ret = drmModeSetCrtc(dev->fd, pipe.crtc->crtc->crtc_id, + fb_id_dst, 0, 0, pipe.con_ids, + pipe.num_cons, pipe.mode); + if (ret) { + fprintf(stderr, "failed to set crtc: %s\n", + strerror(errno)); + goto err_ipp_quque_close; + } + j = 0; while (1) { struct timeval timeout = {.tv_sec = 3, .tv_usec = 0}; |