aboutsummaryrefslogtreecommitdiffstats
path: root/drmtools.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-03-24 15:39:02 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-03-24 15:39:02 +0100
commita9ea738067dc81913dd6229b565ee6620f7e2482 (patch)
tree19cec1080c10b773f647eac06b7be45e946fb795 /drmtools.c
parent187097bc1722406fb62597df26308529fec6951e (diff)
downloadfbida-a9ea738067dc81913dd6229b565ee6620f7e2482.tar.gz
drm: add flush2.11
Diffstat (limited to 'drmtools.c')
-rw-r--r--drmtools.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drmtools.c b/drmtools.c
index b6a60ea..ac501d5 100644
--- a/drmtools.c
+++ b/drmtools.c
@@ -200,6 +200,11 @@ static void drm_restore_display(void)
drm_show_fb();
}
+static void drm_flush_display(void)
+{
+ drmModeDirtyFB(fd, fb_id, 0, 0);
+}
+
gfxstate *drm_init(const char *device, const char *output)
{
gfxstate *gfx;
@@ -240,6 +245,7 @@ gfxstate *drm_init(const char *device, const char *output)
gfx->restore_display = drm_restore_display;
gfx->cleanup_display = drm_cleanup_display;
+ gfx->flush_display = drm_flush_display;
return gfx;
}