gl_drm: Support atomic updates

Grab a plane and lock it down for displaying the canvas, update it on
page flip.
This commit is contained in:
Derek Foreman 2017-04-28 15:43:09 -05:00
parent ab8ec5ed5f
commit 27fc7d5f83
2 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,7 @@ struct _Outbuf
struct
{
Ecore_Drm2_Output *output;
Ecore_Drm2_Plane *plane;
} priv;
Eina_Bool destination_alpha : 1;

View File

@ -102,6 +102,9 @@ _evas_outbuf_buffer_swap(Outbuf *ob)
if (fb)
{
if (!ob->priv.plane)
ob->priv.plane = ecore_drm2_plane_assign(ob->priv.output, fb);
else ecore_drm2_plane_fb_set(ob->priv.plane, fb);
ecore_drm2_fb_flip(fb, ob->priv.output);
/* Ecore_Drm2_Plane *plane; */