Skip to content
Snippets Groups Projects
Commit dac191d5 authored by Bruno Martins's avatar Bruno Martins Committed by Noah Anleitner
Browse files

Hookup GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE


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

So far only GRALLOC_HANDLE_HAS_RESERVED_SIZE was hooked up
for Google Pixels, but it's now time to hook up the remaining flag.

Change-Id: I175bd328bd9733b9487e349f7a8486f15ef0a450
Signed-off-by: default avatarNoah Anleitner <noah.anleitner@halogenos.org>
parent 6583ea5d
No related branches found
No related tags found
No related merge requests found
......@@ -88,6 +88,23 @@ gralloc_10_usage_bits {
},
}
soong_config_module_type {
name: "gralloc_handle_custom_content_md_reserved_size",
module_type: "cc_defaults",
config_namespace: "lineageGlobalVars",
bool_variables: ["gralloc_handle_has_custom_content_md_reserved_size"],
properties: ["export_cflags"],
}
gralloc_handle_custom_content_md_reserved_size {
name: "gralloc_handle_has_custom_content_md_reserved_size_defaults",
soong_config_variables: {
gralloc_handle_has_custom_content_md_reserved_size: {
export_cflags: ["-DGRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE"],
},
},
}
soong_config_module_type {
name: "gralloc_handle_reserved_size",
module_type: "cc_defaults",
......
......@@ -33,6 +33,7 @@ SOONG_CONFIG_customGlobalVars += \
disable_bluetooth_le_read_buffer_size_v2 \
disable_bluetooth_le_set_host_feature \
bootloader_message_offset \
gralloc_handle_has_custom_content_md_reserved_size \
gralloc_handle_has_reserved_size \
target_init_vendor_lib \
target_ld_shim_libs \
......@@ -58,6 +59,7 @@ SOONG_CONFIG_customQcomVars += \
endif
# Soong bool variables
SOONG_CONFIG_customGlobalVars_gralloc_handle_has_custom_content_md_reserved_size := $(TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE)
SOONG_CONFIG_customGlobalVars_gralloc_handle_has_reserved_size := $(TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE)
SOONG_CONFIG_customGlobalVars_uses_egl_display_array := $(TARGET_USES_EGL_DISPLAY_ARRAY)
SOONG_CONFIG_customNvidiaVars_uses_nvidia_enhancements := $(NV_ANDROID_FRAMEWORK_ENHANCEMENTS)
......@@ -67,6 +69,7 @@ SOONG_CONFIG_customQcomVars_uses_pre_uplink_features_netmgrd := $(TARGET_USES_PR
# Set default values
BOOTLOADER_MESSAGE_OFFSET ?= 0
TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0
TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE ?= false
TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE ?= false
TARGET_INIT_VENDOR_LIB ?= vendor_init
TARGET_SURFACEFLINGER_UDFPS_LIB ?= surfaceflinger_udfps_lib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment