summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Weinstein <jake@aospa.co>2023-10-07 14:50:04 +0900
committeralk3pInjection <webmaster@raspii.tech>2023-12-28 12:21:40 +0800
commit7e49c7ff22a0113ba997748f648dff5ede75f60c (patch)
tree89e29274c88b306a324b673374ee7249ea54819e
parent5d22c02afb280c2e409309381f99b799001e1b54 (diff)
display: Make UBWC-P opt-out
Enabling by default for new targets. Disable for legacy targets. This avoids needing to keep defining flags going forward and means we can drop these patches when existing devices age out. Change-Id: I2cbfa3fe6a9f1c5522286d27aab713027e743bc9
-rw-r--r--Android.bp4
-rw-r--r--config/display-product-commonsys.mk7
2 files changed, 11 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index 1f5effb..0b191c2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -4,6 +4,7 @@ soong_config_module_type {
config_namespace: "qtidisplaycommonsys",
bool_variables: [
"gralloc_handle_has_no_custom_content_md_reserved_size",
+ "gralloc_handle_has_no_ubwcp",
],
properties: [
"cflags",
@@ -16,5 +17,8 @@ qtidisplaycommonsys_cc_defaults {
gralloc_handle_has_no_custom_content_md_reserved_size: {
cflags: ["-DGRALLOC_HANDLE_HAS_NO_CUSTOM_CONTENT_MD_RESERVED_SIZE"],
},
+ gralloc_handle_has_no_ubwcp: {
+ cflags: ["-DGRALLOC_HANDLE_HAS_NO_UBWCP"],
+ },
},
}
diff --git a/config/display-product-commonsys.mk b/config/display-product-commonsys.mk
index 52058d0..489dba8 100644
--- a/config/display-product-commonsys.mk
+++ b/config/display-product-commonsys.mk
@@ -10,6 +10,7 @@ SOONG_CONFIG_NAMESPACES += qtidisplaycommonsys
# Soong Keys
SOONG_CONFIG_qtidisplaycommonsys := displayextension composer3ext
SOONG_CONFIG_qtidisplaycommonsys += gralloc_handle_has_no_custom_content_md_reserved_size
+SOONG_CONFIG_qtidisplaycommonsys += gralloc_handle_has_no_ubwcp
# Soong Values
# displayextension controls global compile time disablement of SF extensions
@@ -24,6 +25,8 @@ SOONG_CONFIG_qtidisplaycommonsys_composer3ext := false
SOONG_CONFIG_qtidisplaycommonsys_gralloc_handle_has_no_custom_content_md_reserved_size := false
+SOONG_CONFIG_qtidisplaycommonsys_gralloc_handle_has_no_ubwcp := false
+
ifeq ($(call is-vendor-board-platform,QCOM),true)
SOONG_CONFIG_qtidisplaycommonsys_displayextension := true
SOONG_CONFIG_qtidisplaycommonsys_composer3ext := true
@@ -32,3 +35,7 @@ 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
+
+ifeq ($(TARGET_GRALLOC_HANDLE_HAS_NO_UBWCP),true)
+ SOONG_CONFIG_qtidisplaycommonsys_gralloc_handle_has_no_ubwcp := true
+endif