evas-drm: Default async page flip to false as this can cause tearing

Async page flip can cause visual tearing, so disable by default for
all cards.

@bugfix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-04-04 07:31:45 +01:00
parent e561d68bc4
commit c208f43814
1 changed files with 3 additions and 6 deletions

View File

@ -480,12 +480,9 @@ evas_drm_outbuf_setup(Outbuf *ob)
/* ob->priv.ctx.vblank_handler = _evas_drm_outbuf_vblank; */
/* check if this card supports async page flipping */
ob->priv.use_async_page_flip = EINA_TRUE;
if ((drmGetCap(ob->priv.fd, DRM_CAP_ASYNC_PAGE_FLIP, &dumb) < 0) || (!dumb))
{
WRN("Drm Device does not support async page flip");
ob->priv.use_async_page_flip = EINA_FALSE;
}
ob->priv.use_async_page_flip = EINA_FALSE;
if ((drmGetCap(ob->priv.fd, DRM_CAP_ASYNC_PAGE_FLIP, &dumb)) || (dumb))
ob->priv.use_async_page_flip = EINA_TRUE;
/* try to get drm resources */
if (!(res = drmModeGetResources(ob->priv.fd)))