summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_drm/evas_outbuf.c
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2016-01-22 14:48:34 -0600
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-18 15:50:15 -0500
commitf10b3f79a20f767924870c814e12303866525ccd (patch)
treef84185a29e94f8f2462187093a4b675bbe2f600a /src/modules/evas/engines/gl_drm/evas_outbuf.c
parent4bdc9d4d07f64e5f2fbea877e71b520496059af9 (diff)
gl_drm: stop trying to figure out buffer age if gl extension isn't present
If we don't have the right extension for age we probably don't have partial updates either. The code to get the age calculations right is actually much nastier than this anyway since gbm can hand back buffers in arbitrary order, and as many as it feels like.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/gl_drm/evas_outbuf.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_outbuf.c b/src/modules/evas/engines/gl_drm/evas_outbuf.c
index 6561441d54..65a47f58ae 100644
--- a/src/modules/evas/engines/gl_drm/evas_outbuf.c
+++ b/src/modules/evas/engines/gl_drm/evas_outbuf.c
@@ -600,25 +600,7 @@ evas_outbuf_buffer_state_get(Outbuf *ob)
600 } 600 }
601 else 601 else
602 { 602 {
603 int delta; 603 return MODE_FULL;
604
605 delta = (ob->priv.last - ob->priv.curr +
606 (ob->priv.last > ob->priv.last ?
607 0 : ob->priv.num)) % ob->priv.num;
608
609 switch (delta)
610 {
611 case 0:
612 return MODE_COPY;
613 case 1:
614 return MODE_DOUBLE;
615 case 2:
616 return MODE_TRIPLE;
617 case 3:
618 return MODE_QUADRUPLE;
619 default:
620 return MODE_FULL;
621 }
622 } 604 }
623 605
624 return ob->swap_mode; 606 return ob->swap_mode;