ee_drm: simplify flipping

We no longer have to track draw and display buffers - the display buffer
is completely handled by ecore_evas_drm's busy tracking.
This commit is contained in:
Derek Foreman 2016-09-07 22:25:43 -05:00
parent 0f534dc3bd
commit ace55231a3
2 changed files with 2 additions and 5 deletions

View File

@ -58,7 +58,7 @@ struct _Outbuf
struct
{
int num;
Outbuf_Fb ofb[4], *draw, *display;
Outbuf_Fb ofb[4], *draw;
Ecore_Drm2_Output *output;
Eina_List *pending;
Eina_Rectangle *rects;

View File

@ -18,9 +18,7 @@ _outbuf_buffer_swap(Outbuf *ob, Eina_Rectangle *rects, unsigned int count)
if (!ofb) return;
ecore_drm2_fb_dirty(ofb->fb, rects, count);
if (ecore_drm2_fb_flip(ofb->fb, ob->priv.output) == 0)
ob->priv.display = ofb;
ecore_drm2_fb_flip(ofb->fb, ob->priv.output);
ofb->drawn = EINA_TRUE;
ofb->age = 0;
@ -231,7 +229,6 @@ _outbuf_fb_wait(Outbuf *ob)
*/
for (i = 0; i < ob->priv.num; i++)
{
if (&ob->priv.ofb[i] == ob->priv.display) continue;
if (ecore_drm2_fb_busy_get(ob->priv.ofb[i].fb)) continue;
if (ob->priv.ofb[i].valid && (ob->priv.ofb[i].age > best_age))
{