OSDN Git Service

enable iris, i915drmfb and nouveaudrmfb support
authorMauro Rossi <issor.oruam@gmail.com>
Thu, 31 Oct 2019 21:49:19 +0000 (22:49 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 8 Jan 2020 02:07:52 +0000 (10:07 +0800)
Changelog of updates to graphics stack:
- Enable iris in BOARD_GPU_DRIVERS
- Add support for 0*i915drmfb
- Use 0*nouveau* expression for new nouveaudrmfb and old nouveaufb

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

index 3f7e7f1..6b90e21 100644 (file)
@@ -73,7 +73,7 @@ SUPERUSER_PACKAGE_PREFIX := com.android.settings.cyanogenmod.superuser
 BOARD_WPA_SUPPLICANT_DRIVER ?= NL80211
 WPA_SUPPLICANT_VERSION ?= VER_2_1_DEVEL
 
-BOARD_GPU_DRIVERS ?= i915 i965 nouveau r300g r600g radeonsi virgl vmwgfx
+BOARD_GPU_DRIVERS ?= i915 i965 iris nouveau r300g r600g radeonsi virgl vmwgfx
 ifneq ($(strip $(BOARD_GPU_DRIVERS)),)
 TARGET_HARDWARE_3D := true
 endif
diff --git a/init.sh b/init.sh
index b689341..a807b70 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -185,7 +185,7 @@ function init_hal_gralloc()
                                set_property debug.drm.mode.force ${video:-1280x800}
                        fi
                        ;;
-               0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb|0*amdgpudrmfb)
+               0*i915drmfb|0*inteldrmfb|0*radeondrmfb|0*nouveau*|0*svgadrmfb|0*amdgpudrmfb)
                        if [ "$HWACCEL" != "0" ]; then
                                set_property ro.hardware.gralloc ${GRALLOC:-drm}
                                set_drm_mode
@@ -210,7 +210,7 @@ function init_hal_hwcomposer()
 function init_hal_vulkan()
 {
        case "$(cat /proc/fb | head -1)" in
-               0*inteldrmfb)
+               0*i915drmfb|0*inteldrmfb)
                        set_property ro.hardware.vulkan android-x86
                        ;;
                0*amdgpudrmfb)