Hookup GRALLOC_HANDLE_HAS_UBWCP_FORMAT

The gralloc struct has been conditionally adjusted not to
break blobs that use the old struct.

Change-Id: I4dd1d1890ad08364d5315386ab830ce9e0edd041
This commit is contained in:
Michael Bestas
2023-10-20 01:47:13 +03:00
parent 625b9a34c0
commit c290ff3f38
2 changed files with 19 additions and 0 deletions

View File

@@ -139,6 +139,23 @@ gralloc_handle_reserved_size {
},
}
soong_config_module_type {
name: "gralloc_handle_ubwcp_format",
module_type: "cc_defaults",
config_namespace: "lineageGlobalVars",
bool_variables: ["gralloc_handle_has_ubwcp_format"],
properties: ["export_cflags"],
}
gralloc_handle_ubwcp_format {
name: "gralloc_handle_has_ubwcp_format_defaults",
soong_config_variables: {
gralloc_handle_has_ubwcp_format: {
export_cflags: ["-DGRALLOC_HANDLE_HAS_UBWCP_FORMAT"],
},
},
}
soong_config_module_type {
name: "target_shim_libs",
module_type: "cc_defaults",

View File

@@ -68,6 +68,7 @@ endif
SOONG_CONFIG_lineageGlobalVars_camera_override_format_from_reserved := $(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED)
SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_custom_content_md_reserved_size := $(TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE)
SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_reserved_size := $(TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE)
SOONG_CONFIG_lineageGlobalVars_gralloc_handle_has_ubwcp_format := $(TARGET_GRALLOC_HANDLE_HAS_UBWCP_FORMAT)
SOONG_CONFIG_lineageGlobalVars_uses_egl_display_array := $(TARGET_USES_EGL_DISPLAY_ARRAY)
SOONG_CONFIG_lineageNvidiaVars_uses_nvidia_enhancements := $(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)
SOONG_CONFIG_lineageQcomVars_supports_extended_compress_format := $(AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT)
@@ -79,6 +80,7 @@ TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED ?= false
TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE ?= false
TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE ?= false
TARGET_GRALLOC_HANDLE_HAS_UBWCP_FORMAT ?= false
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED ?= 1
TARGET_HEALTH_CHARGING_CONTROL_CHARGING_DISABLED ?= 0
TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS ?= true