wayland_shm: enable dmabuf by default

Software rendered wayland clients will now attempt
to use dmabuf on some platforms.  This results in a window
that a compositor may be able to drop into a plane without a copy.

Disable it with the env var EVAS_WAYLAND_SHM_DISABLE_DMABUF
but if you need to disable it, please ping me or file a bug report.
This commit is contained in:
Derek Foreman 2016-12-01 13:24:40 -06:00
parent 763251e50f
commit 9b6ec1ecc3
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
Eina_Bool
_evas_surface_init(Surface *s, int w, int h, int num_buf)
{
if (getenv("EVAS_WAYLAND_SHM_USE_DMABUF"))
if (!getenv("EVAS_WAYLAND_SHM_DISABLE_DMABUF"))
if (_evas_dmabuf_surface_create(s, w, h, num_buf)) return EINA_TRUE;
if (_evas_shm_surface_create(s, w, h, num_buf)) return EINA_TRUE;