summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Martins <bgcngm@gmail.com>2018-12-28 21:34:03 +0000
committeralk3pInjection <webmaster@raspii.tech>2022-01-16 08:24:08 +0800
commit676df16fd63857a9b58b42a3b9da654e711c40e1 (patch)
tree53af0edd80b5a5137bda25f1ee7b12d044911c67
parentc616414938b7ff5028862fa49dbb6d698907f7b8 (diff)
common: Mark some gralloc bits as valid
* Add GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits for all the platforms and GRALLOC_USAGE_PRIVATE_10BIT_TP only for the UM 4.9-based platforms. Both are defined in the respective display HALs (in gralloc/gralloc_priv.h) being the latter only available for sdm845. * This results in the same as applying https://goo.gl/SR7sFY, but it's preferable since it makes use of our own method of extending the valid gralloc 1.0 usage bits (see commit 59009f8). TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS is extended here on purpose and as a bitwise OR of all the values in order not to clear what might have been set in the device trees. Change-Id: I5536f341e75088cc72ac369065011388f0a6d3f1
-rw-r--r--common.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.mk b/common.mk
index b7be0a2..fe23d44 100644
--- a/common.mk
+++ b/common.mk
@@ -31,6 +31,10 @@ PRODUCT_COPY_FILES += \
device/qcom/common/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
device/qcom/common/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
+# Mark GRALLOC_USAGE_PRIVATE_WFD as valid gralloc bits
+TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
+TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS += | (1 << 21)
+
# Advanced DPM
ifeq ($(TARGET_WANTS_EXTENDED_DPM_PLATFORM),true)
PRODUCT_BOOT_JARS += tcmclient