OSDN Git Service

Merge remote-tracking branch 'x86/pie-x86' into q-x86
[android-x86/device-generic-common.git] / init.sh
diff --git a/init.sh b/init.sh
index 8293126..be676c3 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
-               *virtiodrmfb)
+               *virtiodrmfb|*DRM*emulated)
                        if [ "$HWACCEL" != "0" ]; then
                                set_property ro.hardware.hwcomposer ${HWC:-drm}
                                set_property ro.hardware.gralloc ${GRALLOC:-gbm}
@@ -198,6 +198,7 @@ function init_hal_gralloc()
                        ;;
        esac
 
+       [ -z "$(getprop ro.hardware.gralloc)" ] && set_property ro.hardware.egl swiftshader
        [ -n "$DEBUG" ] && set_property debug.egl.trace error
 }