From e313f8855a9a467da3aa982b046209df5cad4bcb Mon Sep 17 00:00:00 2001 From: Albert I Date: Wed, 30 Jun 2021 19:06:09 +0800 Subject: [PATCH] sm6250-common: Set up display color compositions * Switch to "Adaptive" mode and Display P3 color by default * Use default color mode for Natural and Boosted * Enable QDCM combined mode and disable factory mode * Drop LiveDisplay's color mode support as it conflicts with AOSP display color adjustment * Rest of configuration is kanged off Pixel's overlay Signed-off-by: Albert I Change-Id: Ib26033fe00a6cc1e8c7d8f93da417516e31a52e3 --- device_framework_matrix.xml | 4 --- manifest.xml | 1 - .../base/core/res/res/values/config.xml | 34 +++++++++++++++++++ vendor.prop | 6 ++-- 4 files changed, 38 insertions(+), 7 deletions(-) diff --git a/device_framework_matrix.xml b/device_framework_matrix.xml index 83bf2f1..9834176 100644 --- a/device_framework_matrix.xml +++ b/device_framework_matrix.xml @@ -95,10 +95,6 @@ vendor.lineage.livedisplay 2.0 - IDisplayModes - default - - IPictureAdjustment default diff --git a/manifest.xml b/manifest.xml index 0c2c267..12fb24a 100644 --- a/manifest.xml +++ b/manifest.xml @@ -139,7 +139,6 @@ vendor.lineage.livedisplay hwbinder - @2.0::IDisplayModes/default @2.0::IPictureAdjustment/default diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 1eb8f2d..565acba 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -327,4 +327,38 @@ running in WAL mode. Choices are: FULL, NORMAL, OFF. --> OFF + + + + 0 + 1 + 3 + + + + 2 + + + + 0 + 1 + 3 + + + 0 + 0 + 9 + diff --git a/vendor.prop b/vendor.prop index 19d7e2b..0dd88bd 100644 --- a/vendor.prop +++ b/vendor.prop @@ -133,6 +133,8 @@ vendor.display.disable_ui_3d_tonemap=1 vendor.display.enable_default_color_mode=0 vendor.display.enable_null_display=0 vendor.display.enable_optimize_refresh=1 +vendor.display.qdcm.disable_factory_mode=1 +vendor.display.qdcm.mode_combine=1 vendor.display.svi.config=1 vendor.display.svi.config_path=/vendor/etc/SVIConfig.xml @@ -147,9 +149,9 @@ debug.egl.hw=0 debug.mdpcomp.logs=0 debug.sf.hw=0 debug.sf.latch_unsignaled=1 -persist.sys.sf.color_mode=0 +persist.sys.sf.color_mode=9 persist.sys.sf.color_saturation=1.0 -persist.sys.sf.native_mode=0 +persist.sys.sf.native_mode=2 ro.hardware.egl=adreno ro.hardware.vulkan=adreno ro.opengles.version=196610