OSDN Git Service

init.sh: add support for HWC kernel cmdline for all GPUs
authorMauro Rossi <issor.oruam@gmail.com>
Mon, 6 Jan 2020 09:15:51 +0000 (10:15 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 8 Jan 2020 02:08:23 +0000 (10:08 +0800)
Allows to select hardware composers using the values {drm,drm_minigbm,intel}
in conjuction with respective GRALLOC {gbm,minigbm,intel}

The default is hwcomposer disabled, with ro.hardware.hwcomposer not set,
based on the assumption that hwcomposer. module does not exist

Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
init.sh

diff --git a/init.sh b/init.sh
index a807b70..4dc85d8 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -187,6 +187,7 @@ function init_hal_gralloc()
                        ;;
                0*i915drmfb|0*inteldrmfb|0*radeondrmfb|0*nouveau*|0*svgadrmfb|0*amdgpudrmfb)
                        if [ "$HWACCEL" != "0" ]; then
+                               set_property ro.hardware.hwcomposer ${HWC:-}
                                set_property ro.hardware.gralloc ${GRALLOC:-drm}
                                set_drm_mode
                        fi