diff options
author | HyunKyung Kim <hk310.kim@samsung.com> | 2020-09-16 16:41:15 +0900 |
---|---|---|
committer | Weizhung Ding <weizhungding@google.com> | 2021-03-22 22:20:16 +0800 |
commit | e832cf23f23a5d74a05d099ad0e80dfa8e3c6824 (patch) | |
tree | 2dcb7c2ec51800fb355afeb59869bdfb984c6a57 /libhwc2.1/libresource/ExynosResourceManager.cpp | |
parent | 6adae15085bbbcbcc989305e52f4ca7ef91cc4ae (diff) |
libhwc2.1: Reserve DPP to the specific display
This patch reserves DPP to the specific display
even if the display is not connected when
configuration is enabled.
DPP can be used by reserved display.
Bug: 162322019
Test: single/dual display boot to OS, and suspend/resume
Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
Change-Id: I3384ce98363c3c4f79ffc96e347dfef32c83f647
Diffstat (limited to 'libhwc2.1/libresource/ExynosResourceManager.cpp')
-rw-r--r-- | libhwc2.1/libresource/ExynosResourceManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhwc2.1/libresource/ExynosResourceManager.cpp b/libhwc2.1/libresource/ExynosResourceManager.cpp index eecb1ec..785db7d 100644 --- a/libhwc2.1/libresource/ExynosResourceManager.cpp +++ b/libhwc2.1/libresource/ExynosResourceManager.cpp @@ -1892,7 +1892,8 @@ int32_t ExynosResourceManager::preAssignResources() HDEBUGLOGD(eDebugResourceManager, "\t\tdisplay index(%zu), checkBit(%d)", j, checkBit); if (checkBit) { HDEBUGLOGD(eDebugResourceManager, "\t\tdisplay index(%zu), displayId(%d), display(%p)", j, display->mDisplayId, display); - if ((display != NULL) && (display->mPlugState == true)) { + if ((display != NULL) && + (display->mDisplayControl.forceReserveMPP || display->mPlugState)) { HDEBUGLOGD(eDebugResourceManager, "\t\treserve to display %d", display->mDisplayId); mOtfMPPs[i]->reserveMPP(display->mDisplayId); break; |