OSDN Git Service

init.sh: fix virgl support of newer kernel android-x86-8.1-r3
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 24 Oct 2019 10:14:36 +0000 (18:14 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 24 Oct 2019 10:14:36 +0000 (18:14 +0800)
init.sh

diff --git a/init.sh b/init.sh
index 8293126..f759a1c 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -178,7 +178,7 @@ function init_hal_gralloc()
        [ "$VULKAN" = "1" ] && GRALLOC=gbm
 
        case "$(cat /proc/fb | head -1)" in
        [ "$VULKAN" = "1" ] && GRALLOC=gbm
 
        case "$(cat /proc/fb | head -1)" in
-               *virtiodrmfb)
+               *virtiodrmfb|*DRM*emulated)
                        if [ "$HWACCEL" != "0" ]; then
                                set_property ro.hardware.hwcomposer ${HWC:-drm}
                                set_property ro.hardware.gralloc ${GRALLOC:-gbm}
                        if [ "$HWACCEL" != "0" ]; then
                                set_property ro.hardware.hwcomposer ${HWC:-drm}
                                set_property ro.hardware.gralloc ${GRALLOC:-gbm}