modetest: Call dirty fb on modeset

Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
main
Jakob Bornecrantz 2011-10-19 13:32:43 +02:00
parent 680b9c4fa3
commit d23146f3f0
1 changed files with 4 additions and 0 deletions

View File

@ -583,6 +583,10 @@ set_mode(struct connector *c, int count, int page_flip)
ret = drmModeSetCrtc(fd, c[i].crtc, fb_id, x, 0, ret = drmModeSetCrtc(fd, c[i].crtc, fb_id, x, 0,
&c[i].id, 1, c[i].mode); &c[i].id, 1, c[i].mode);
/* XXX: Actually check if this is needed */
drmModeDirtyFB(fd, fb_id, NULL, 0);
x += c[i].mode->hdisplay; x += c[i].mode->hdisplay;
if (ret) { if (ret) {