summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Weinstein <jake@aospa.co>2023-10-07 14:45:15 +0900
committeralk3pInjection <webmaster@raspii.tech>2023-12-28 12:21:40 +0800
commit5d22c02afb280c2e409309381f99b799001e1b54 (patch)
treedad09738f0805a10c1ee087b71dd40b7dd6d9eb1
parentad58c0d71321ff06c6be62309ad5d75aba212f5b (diff)
display: Make custom content metadata region opt-out
Pre-8550 devices do not currently support this. Change-Id: I01026f1963a93b3e024f7f4ccdeafd5809fa47fd
-rw-r--r--Android.bp20
-rw-r--r--config/display-product-commonsys.mk7
2 files changed, 27 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..1f5effb
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,20 @@
+soong_config_module_type {
+ name: "qtidisplaycommonsys_cc_defaults",
+ module_type: "cc_defaults",
+ config_namespace: "qtidisplaycommonsys",
+ bool_variables: [
+ "gralloc_handle_has_no_custom_content_md_reserved_size",
+ ],
+ properties: [
+ "cflags",
+ ],
+}
+
+qtidisplaycommonsys_cc_defaults {
+ name: "qtidisplaycommonsys_defaults",
+ soong_config_variables: {
+ gralloc_handle_has_no_custom_content_md_reserved_size: {
+ cflags: ["-DGRALLOC_HANDLE_HAS_NO_CUSTOM_CONTENT_MD_RESERVED_SIZE"],
+ },
+ },
+}
diff --git a/config/display-product-commonsys.mk b/config/display-product-commonsys.mk
index 0b913da..52058d0 100644
--- a/config/display-product-commonsys.mk
+++ b/config/display-product-commonsys.mk
@@ -9,6 +9,7 @@ PRODUCT_PACKAGES += libdisplayconfig.system \
SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
# Soong Keys
SOONG_CONFIG_qtidisplaycommonsys := displayextension composer3ext
+SOONG_CONFIG_qtidisplaycommonsys += gralloc_handle_has_no_custom_content_md_reserved_size
# Soong Values
# displayextension controls global compile time disablement of SF extensions
@@ -21,7 +22,13 @@ SOONG_CONFIG_qtidisplaycommonsys_displayextension := false
# properties
SOONG_CONFIG_qtidisplaycommonsys_composer3ext := false
+SOONG_CONFIG_qtidisplaycommonsys_gralloc_handle_has_no_custom_content_md_reserved_size := false
+
ifeq ($(call is-vendor-board-platform,QCOM),true)
SOONG_CONFIG_qtidisplaycommonsys_displayextension := true
SOONG_CONFIG_qtidisplaycommonsys_composer3ext := true
endif
+
+ifeq ($(TARGET_GRALLOC_HANDLE_HAS_NO_CUSTOM_CONTENT_MD_RESERVED_SIZE),true)
+ SOONG_CONFIG_qtidisplaycommonsys_gralloc_handle_has_no_custom_content_md_reserved_size := true
+endif