summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_fb.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-04-28 15:15:59 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-05-05 12:53:23 -0500
commit6b9a6a8bed73eb3b2e47b12f304f7e04a11c2d38 (patch)
tree662087ecb7dd6a2ef3a5e91259c3df5987a10d43 /src/lib/ecore_drm2/ecore_drm2_fb.c
parent9223b0d5356560d4246b5ef4d592672cab032949 (diff)
ecore_drm2: Fix atomic flip with no new buffer
We don't have an atomic state, so we need to create one before the flip
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 43e8533bf6..ec2f7e196d 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -505,6 +505,11 @@ ecore_drm2_fb_flip(Ecore_Drm2_Fb *fb, Ecore_Drm2_Output *output)
505 if (!fb) return -1; 505 if (!fb) return -1;
506 506
507 output->prep.fb = fb; 507 output->prep.fb = fb;
508#ifdef HAVE_ATOMIC_DRM
509 /* If we have no req yet, we're flipping to current state.
510 * rebuild the current state in the prep state */
511 if (!output->prep.atomic_req) _fb_atomic_flip_test(output);
512#endif
508 513
509 if (_ecore_drm2_use_atomic) 514 if (_ecore_drm2_use_atomic)
510 ret = _fb_atomic_flip(output); 515 ret = _fb_atomic_flip(output);