summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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