diff options
author | Luca Stefani <luca020400@lineageos.org> | 2017-08-22 22:03:01 +0200 |
---|---|---|
committer | dd3boh <dade.garberi@gmail.com> | 2017-09-07 18:01:57 +0200 |
commit | 7922700448dfe93105a2a12d25bb08f64a132aa3 (patch) | |
tree | 5ab87a39c15ba0b950cfe26178f0d183fae79c84 | |
parent | b1e924e0c40928ff7efabf0d6b9432ce9b3f825e (diff) |
z2_plus: Update display/render for O
* Build the various display/render related HIDL HALs
* Enable HWC2 & Gralloc1
Change-Id: I61c34a531e3131209a08b5b4670e1f1f8fbb435d
Signed-off-by: dd3boh <dade.garberi@gmail.com>
-rw-r--r-- | BoardConfig.mk | 13 | ||||
-rwxr-xr-x | device.mk | 17 |
2 files changed, 20 insertions, 10 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk index 64bc28e..c156d6b 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -146,17 +146,17 @@ TARGET_HW_DISK_ENCRYPTION := true # Display BOARD_USES_ADRENO := true TARGET_CONTINUOUS_SPLASH_ENABLED := true -TARGET_USES_C2D_COMPOSITION := true TARGET_USES_ION := true -TARGET_USES_OVERLAY := true -USE_OPENGL_RENDERER := true +TARGET_USES_GRALLOC1 := true +TARGET_USES_HWC2 := true + MAX_EGL_CACHE_KEY_SIZE := 12*1024 MAX_EGL_CACHE_SIZE := 2048*1024 -OVERRIDE_RS_DRIVER:= libRSDriver_adreno.so MAX_VIRTUAL_DISPLAY_DIMENSION := 4096 TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true -VSYNC_EVENT_PHASE_OFFSET_NS := 2000000 +NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3 SF_VSYNC_EVENT_PHASE_OFFSET_NS := 6000000 +VSYNC_EVENT_PHASE_OFFSET_NS := 2000000 # Filesystem TARGET_FS_CONFIG_GEN := $(PLATFORM_PATH)/config.fs @@ -186,6 +186,9 @@ BOARD_FLASH_BLOCK_SIZE := 262144 # QCOM Power TARGET_POWERHAL_VARIANT := qcom +# Render +OVERRIDE_RS_DRIVER := libRSDriver_adreno.so + # Recovery TARGET_RECOVERY_FSTAB := $(PLATFORM_PATH)/rootdir/etc/fstab.qcom TARGET_USERIMAGES_USE_EXT4 := true @@ -131,12 +131,14 @@ PRODUCT_PACKAGES += \ # Display PRODUCT_PACKAGES += \ - copybit.msm8996 \ + android.hardware.graphics.allocator@2.0-impl \ + android.hardware.graphics.allocator@2.0-service \ + android.hardware.graphics.composer@2.1-impl \ + android.hardware.graphics.mapper@2.0-impl \ + android.hardware.memtrack@1.0-impl \ gralloc.msm8996 \ hwcomposer.msm8996 \ - memtrack.msm8996 \ - liboverlay \ - libtinyxml + memtrack.msm8996 # Fingerprint PRODUCT_PACKAGES += \ @@ -251,7 +253,8 @@ PRODUCT_PACKAGES += \ # QMI PRODUCT_PACKAGES += \ - libjson + libjson \ + libtinyxml # Ramdisk PRODUCT_PACKAGES += \ @@ -264,6 +267,10 @@ PRODUCT_PACKAGES += \ init.qcom.bt.sh \ ueventd.qcom.rc +# RenderScript HAL +PRODUCT_PACKAGES += \ + android.hardware.renderscript@1.0-impl + # RIL PRODUCT_PACKAGES += \ librmnetctl \ |