From 73c963fb24d11c3154bcbd1c200c0077f4fd02a3 Mon Sep 17 00:00:00 2001 From: Vara Prasad A V S G Date: Tue, 28 Mar 2017 10:44:56 +0530 Subject: [PATCH] sdm660_64: Enable HWC2, Enable gralloc1, Add graphics HALs. Add allocator, mapper and composer HALs. This relies on TARGET_USES_HWC2 and TARGET_USES_GRALLOC1 being enabled. Change-Id: I913f4d8fa719261abf52becf7d24fef433f7f1d5 --- BoardConfig.mk | 4 ++++ sdm660_64.mk | 14 ++++++++++++++ vintf.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100644 vintf.xml diff --git a/BoardConfig.mk b/BoardConfig.mk index 7583cf37..e44710f0 100755 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -72,6 +72,10 @@ TARGET_USES_ION := true TARGET_USES_NEW_ION_API :=true #TARGET_USES_QCOM_BSP :=true +#Gralloc h/w specif flags +TARGET_USES_HWC2 := true +TARGET_USES_GRALLOC1 := true + ifeq ($(BOARD_KERNEL_CMDLINE),) ifeq ($(TARGET_KERNEL_VERSION),4.4) BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0 earlycon=msm_serial_dm,0xc170000 diff --git a/sdm660_64.mk b/sdm660_64.mk index e1006e3b..30134f2b 100755 --- a/sdm660_64.mk +++ b/sdm660_64.mk @@ -75,6 +75,10 @@ ifeq ($(strip $(BOARD_HAVE_QCOM_FM)),true) PRODUCT_BOOT_JARS += qcom.fmradio endif #BOARD_HAVE_QCOM_FM +# add vendor manifest file +PRODUCT_COPY_FILES += \ + device/qcom/sdm660_64/vintf.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml + # Audio configuration file -include $(TOPDIR)hardware/qcom/audio/configs/sdm660/sdm660.mk @@ -103,6 +107,16 @@ PRODUCT_PACKAGES += \ antradio_app \ libvolumelistener +# Gralloc +PRODUCT_PACKAGES += \ + android.hardware.graphics.allocator@2.0-impl \ + android.hardware.graphics.allocator@2.0-service \ + android.hardware.graphics.mapper@2.0-impl + +# HW Composer +PRODUCT_PACKAGES += \ + android.hardware.graphics.composer@2.1-impl \ + android.hardware.graphics.composer@2.1-service # Sensor features PRODUCT_COPY_FILES += \ diff --git a/vintf.xml b/vintf.xml new file mode 100644 index 00000000..1c6f18bf --- /dev/null +++ b/vintf.xml @@ -0,0 +1,48 @@ + + + + + android.hardware.graphics.allocator + toggled + + 2.0 + + + android.hardware.graphics.mapper + passthrough + + 2.0 + + + android.hardware.graphics.composer + toggled + + 2.1 + +