OSDN Git Service

init.sh: enable egl trace on error in debug mode
authorMauro Rossi <issor.oruam@gmail.com>
Thu, 24 Dec 2015 16:54:33 +0000 (17:54 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 5 May 2016 18:17:12 +0000 (02:17 +0800)
The change enables egl trace on error by setting property debug.egl.trace error,
based on definition of any string in DEBUG variable.

Tested with marshmallow-x86 and applicable also to lollipop-x86.

init.sh

diff --git a/init.sh b/init.sh
index 2dbe15d..219a477 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -120,6 +120,7 @@ function init_hal_gralloc()
                0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb)
                        set_property ro.hardware.gralloc drm
                        set_drm_mode
+                       [ -n "$DEBUG" ] && set_property debug.egl.trace error
                        ;;
                "")
                        init_uvesafb