v4l2test: Do not show the remains frame from last DRM display process

Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
This commit is contained in:
Kevin.xie
2022-07-25 14:13:56 +08:00
parent 520be2db62
commit 29d0679078
2 changed files with 34 additions and 12 deletions
-11
View File
@@ -384,17 +384,6 @@ LOG(STF_LEVEL_INFO, "width=%d,height=%d,pitch=%d,bo_handle=%d,fb_id=%d\n",
dev->saved_crtc = drmModeGetCrtc(fd, dev->crtc_id); /* must store crtc data */
/* First buffer to DRM */
if (drmModeSetCrtc(fd, dev->crtc_id, dev->bufs[0].fb_id, 0, 0,
&dev->conn_id, 1, &dev->mode)) {
fatal("drmModeSetCrtc() failed");
}
/* First flip */
drmModePageFlip(fd, dev->crtc_id,
dev->bufs[0].fb_id, DRM_MODE_PAGE_FLIP_EVENT,
dev);
LOG(STF_LEVEL_TRACE, "Exit\n");
}