forked from enlightenment/efl
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:
parent
ab8ec5ed5f
commit
27fc7d5f83
|
@ -103,6 +103,7 @@ struct _Outbuf
|
|||
struct
|
||||
{
|
||||
Ecore_Drm2_Output *output;
|
||||
Ecore_Drm2_Plane *plane;
|
||||
} priv;
|
||||
|
||||
Eina_Bool destination_alpha : 1;
|
||||
|
|
|
@ -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; */
|
||||
|
|
Loading…
Reference in New Issue