summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-03-10 18:34:19 -0600
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-03-11 11:53:46 -0500
commitee0508a2bb6ecf69c7920ad1b39a619e0901514a (patch)
tree3f26fffe00ba706e989cfd187f66f797cdb540a0 /src/lib/ecore_drm
parentd558c0122f30668dcc2fe21b49a82c8388b5e318 (diff)
ecore_drm: Update device copy of framebuffer after page flip completes
The device struct is API, so its copy of the fb pointer needs to be kept in sync with the output struct's. We do this when the flip completes to try to prevent access to an fb that's about to flip. This fixes Enlightenment screenshots. @fix
Diffstat (limited to 'src/lib/ecore_drm')
-rw-r--r--src/lib/ecore_drm/ecore_drm_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_device.c b/src/lib/ecore_drm/ecore_drm_device.c
index 27e42897f7..2ea9f42c0d 100644
--- a/src/lib/ecore_drm/ecore_drm_device.c
+++ b/src/lib/ecore_drm/ecore_drm_device.c
@@ -83,6 +83,8 @@ _ecore_drm_device_cb_page_flip(int fd EINA_UNUSED, unsigned int frame EINA_UNUSE
83 ecore_drm_output_free(output); 83 ecore_drm_output_free(output);
84 return; 84 return;
85 } 85 }
86
87 output->dev->current = output->current;
86 /* We were unable to queue a page on the last flip attempt, so we'll 88 /* We were unable to queue a page on the last flip attempt, so we'll
87 * try again now. */ 89 * try again now. */
88 next = output->next; 90 next = output->next;