uterm: drm: activate context before swapping
authorDavid Herrmann <dh.herrmann@gmail.com>
Mon, 4 Nov 2013 18:37:05 +0000 (19:37 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Mon, 4 Nov 2013 18:37:05 +0000 (19:37 +0100)
Lets be safe here and activate the context before performing the
buffer-swap. Drivers might be inconsistent and require this in case the
background process changed the DRM state.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
src/uterm_drm_shared.c

index 8d1e1be..ec486ab 100644 (file)
@@ -703,6 +703,7 @@ int uterm_drm_video_hotplug(struct uterm_video *video,
 
                        if (modeset) {
                                log_debug("re-activate display %p", disp);
+                               uterm_display_use(disp, NULL);
                                uterm_display_swap(disp, true);
                        }