From aaeb99ecc37f13d78346261e73315d66002e2aad Mon Sep 17 00:00:00 2001 From: Daniel Jacob Chittoor Date: Tue, 16 Jan 2024 21:30:23 +0530 Subject: [PATCH] vendor/lineage: Hookup TARGET_FORCE_RENDER_ENGINE_GEN_TEXTURES --- build/soong/Android.bp | 17 +++++++++++++++++ config/BoardConfigSoong.mk | 3 +++ 2 files changed, 20 insertions(+) diff --git a/build/soong/Android.bp b/build/soong/Android.bp index 2029d7ecb..8cc8b0593 100644 --- a/build/soong/Android.bp +++ b/build/soong/Android.bp @@ -259,6 +259,23 @@ egl_display_array { }, } +soong_config_module_type { + name: "force_render_engine_gen_textures", + module_type: "cc_defaults", + config_namespace: "lineageGlobalVars", + bool_variables: ["force_render_engine_gen_textures"], + properties: ["cppflags"], +} + +force_render_engine_gen_textures { + name: "force_render_engine_gen_textures_defaults", + soong_config_variables: { + force_render_engine_gen_textures: { + cppflags: ["-DTARGET_FORCE_RENDER_ENGINE_GEN_TEXTURES"], + }, + }, +} + soong_config_module_type { name: "health_charging_control", module_type: "cc_defaults", diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk index 651d33724..db7df09ad 100644 --- a/config/BoardConfigSoong.mk +++ b/config/BoardConfigSoong.mk @@ -32,6 +32,7 @@ SOONG_CONFIG_lineageGlobalVars += \ additional_gralloc_10_usage_bits \ bootloader_message_offset \ camera_override_format_from_reserved \ + force_render_engine_gen_textures \ gralloc_handle_has_custom_content_md_reserved_size \ gralloc_handle_has_reserved_size \ target_health_charging_control_charging_path \ @@ -68,6 +69,7 @@ endif # Soong bool variables SOONG_CONFIG_lineageGlobalVars_camera_override_format_from_reserved := $(TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED) +SOONG_CONFIG_lineageGlobalVars_force_render_engine_gen_textures := $(TARGET_FORCE_RENDER_ENGINE_GEN_TEXTURES) 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_uses_egl_display_array := $(TARGET_USES_EGL_DISPLAY_ARRAY) @@ -80,6 +82,7 @@ SOONG_CONFIG_lineageQcomVars_uses_pre_uplink_features_netmgrd := $(TARGET_USES_P BOOTLOADER_MESSAGE_OFFSET ?= 0 TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS ?= 0 TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED ?= false +TARGET_FORCE_RENDER_ENGINE_GEN_TEXTURES ?= false TARGET_GRALLOC_HANDLE_HAS_CUSTOM_CONTENT_MD_RESERVED_SIZE ?= false TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE ?= false TARGET_HEALTH_CHARGING_CONTROL_CHARGING_ENABLED ?= 1 -- GitLab