modetest: Call dirty fb on modeset
authorJakob Bornecrantz <jakob@vmware.com>
Wed, 19 Oct 2011 11:32:43 +0000 (13:32 +0200)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 19 Oct 2011 11:35:07 +0000 (13:35 +0200)
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
tests/modetest/modetest.c

index f65a033..229ab8a 100644 (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,
                                     &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;
 
                if (ret) {