forked from enlightenment/efl
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:
parent
763251e50f
commit
9b6ec1ecc3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue