From 98f710fb5ffb671ebc3cb5a7888d4873e42a4c36 Mon Sep 17 00:00:00 2001 From: Joogab Yun Date: Fri, 26 Aug 2016 09:31:36 +0900 Subject: [PATCH] [evas_sw_backend] disable tbm buffer on sw backend because there is cache flush issue at wearable Change-Id: I6d1f2e4548604e3c695ecce29ff3f9988e182521 --- src/modules/evas/engines/wayland_shm/evas_outbuf.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/modules/evas/engines/wayland_shm/evas_outbuf.c b/src/modules/evas/engines/wayland_shm/evas_outbuf.c index 6d91c0a..6a88b65 100755 --- a/src/modules/evas/engines/wayland_shm/evas_outbuf.c +++ b/src/modules/evas/engines/wayland_shm/evas_outbuf.c @@ -12,15 +12,23 @@ Eina_Bool _evas_surface_init(Surface *s, int w, int h, int num_buf) { + if (getenv("EVAS_WAYLAND_USE_TBMBUF")) + if (_evas_tbmbuf_surface_create(s, w, h, num_buf)) return EINA_TRUE; + + if (_evas_shm_surface_create(s, w, h, num_buf)) return EINA_TRUE; + + /* if (getenv("EVAS_WAYLAND_USE_SHMBUF")) { - if (_evas_shm_surface_create(s, w, h, num_buf)) return EINA_TRUE; + if (_evas_shm_surface_create(s, w, h, num_buf)) return EINA_TRUE; } else - { - if (_evas_tbmbuf_surface_create(s, w, h, num_buf)) return EINA_TRUE; - if (_evas_shm_surface_create(s, w, h, num_buf)) return EINA_TRUE; - } + { + if (_evas_tbmbuf_surface_create(s, w, h, num_buf)) return EINA_TRUE; + if (_evas_shm_surface_create(s, w, h, num_buf)) return EINA_TRUE; + } + */ + return EINA_FALSE; } -- 2.7.4