derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9b6ec1ecc3bf7482576989c6b368741b35eae4c5

commit 9b6ec1ecc3bf7482576989c6b368741b35eae4c5
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Thu Dec 1 13:24:40 2016 -0600

    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.
---
 src/modules/evas/engines/wayland_shm/evas_outbuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c 
b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
index e477423..b25242f 100644
--- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c
+++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c
@@ -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;

-- 


Reply via email to