diff options
author | Midas Chien <midaschieh@google.com> | 2022-05-20 21:31:05 +0800 |
---|---|---|
committer | Midas Chien <midaschieh@google.com> | 2022-05-24 09:04:04 +0800 |
commit | de0f10f472f40dda7a876c4fc9f6f23cc3da3ed8 (patch) | |
tree | a6ff7db9ae51a94abda2609a67b5a5350b0b61fe /libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp | |
parent | 2eee78095ce506d3f796c3cb1b04cf895f5bce3f (diff) |
RRS: use default boot mode from driver during the boot time
Composer starts before persistent property ready. Therefore composer
doesn't know user selected boot mode during composer initialization. If
default boot mode and user selected boot mode is different, resolution
will be switched twice at composer booting and DMS starts. To avoid this
problem, get boot mode from driver for the first composer booting. Also
remove vendor prop to only use persist prop to control config.
Bug: 232721840
Test: boot w/ and w/o user selected configs and check the resolution
Test: boot w/ and w/o default mode and check the resolution
Change-Id: I6940a49354d2851d23656d2ee67bce802e7b9bd8
Diffstat (limited to 'libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp')
-rw-r--r-- | libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp b/libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp index ab0b057..3bf0129 100644 --- a/libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp +++ b/libhwc2.1/libdisplayinterface/ExynosDisplayDrmInterface.cpp @@ -844,7 +844,7 @@ int32_t ExynosDisplayDrmInterface::chosePreferredConfig() hwc2_config_t config; int32_t bootConfig; err = mExynosDisplay->getPreferredDisplayConfigInternal(&bootConfig); - if (err == HWC2_ERROR_NONE) { + if (err == HWC2_ERROR_NONE && property_get_bool("sys.boot_completed", false) == true) { config = static_cast<hwc2_config_t>(bootConfig); } else { config = mDrmConnector->get_preferred_mode_id(); |