summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2/ecore_drm2_fb.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-04-27 16:52:09 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-05-05 12:53:22 -0500
commit9da0f52642706057dc71894a490ede658580d48b (patch)
tree58dc287da16dc5da847ed0072819fbcca2e57692 /src/lib/ecore_drm2/ecore_drm2_fb.c
parent8143abff2cbdeff0d2eb5fcf93817efda24688ee (diff)
ecore_drm2: remove fb parameter from _fb_flip()
Time to start smashing the atomic and non-atomic paths together.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_fb.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_fb.c b/src/lib/ecore_drm2/ecore_drm2_fb.c
index 1a3b40c5f8..2018e121c5 100644
--- a/src/lib/ecore_drm2/ecore_drm2_fb.c
+++ b/src/lib/ecore_drm2/ecore_drm2_fb.c
@@ -369,12 +369,15 @@ _fb_atomic_flip(Ecore_Drm2_Output *output)
369} 369}
370 370
371static int 371static int
372_fb_flip(Ecore_Drm2_Output *output, Ecore_Drm2_Fb *fb) 372_fb_flip(Ecore_Drm2_Output *output)
373{ 373{
374 Ecore_Drm2_Fb *fb;
374 Eina_Bool repeat; 375 Eina_Bool repeat;
375 int count = 0; 376 int count = 0;
376 int ret = 0; 377 int ret = 0;
377 378
379 fb = output->prep.fb;
380
378 if (output->pending.fb) 381 if (output->pending.fb)
379 { 382 {
380 if (output->next.fb) _release_buffer(output, output->next.fb); 383 if (output->next.fb) _release_buffer(output, output->next.fb);
@@ -490,10 +493,12 @@ ecore_drm2_fb_flip(Ecore_Drm2_Fb *fb, Ecore_Drm2_Output *output)
490 493
491 if (!output->enabled) return -1; 494 if (!output->enabled) return -1;
492 495
496 output->prep.fb = fb;
497
493 if (_ecore_drm2_use_atomic) 498 if (_ecore_drm2_use_atomic)
494 ret = _fb_atomic_flip(output); 499 ret = _fb_atomic_flip(output);
495 else 500 else
496 ret = _fb_flip(output, fb); 501 ret = _fb_flip(output);
497 502
498 return ret; 503 return ret;
499} 504}