diff options
author | HyunKyung Kim <hk310.kim@samsung.com> | 2020-12-01 11:00:00 +0900 |
---|---|---|
committer | Yichi Chen <yichichen@google.com> | 2020-12-31 11:44:25 +0000 |
commit | 821afba70ce77cf60ef0e832c818340502f44a9e (patch) | |
tree | 60f4ff8ba0a17444e1a55fb5d35ffb48321021b8 /libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp | |
parent | cacf9238c15588f84a18cb367cf93b4bfce38cd3 (diff) |
libhwc2.1: Get clock and ppc constant values from display driver
Clock and ppc constant values are used to check scale down ratio.
Read them from display driver.
Bug: 170821166
Test: Check PPC and Disp frequency loaded from driver
Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
Change-Id: Ie68d2a1d98e093cf115a7060ec9c92c54a24cff4
Diffstat (limited to 'libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp')
-rw-r--r-- | libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp b/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp index 2901fab..eb54aca 100644 --- a/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp +++ b/libhwc2.1/libdisplayinterface/ExynosDeviceInterface.cpp @@ -151,6 +151,14 @@ int32_t ExynosDeviceInterface::makeDPURestrictions() { resourceManager->makeSizeRestrictions(hwType, rSize, RESTRICTION_YUV); } + + for (auto it: resourceManager->getOtfMPPs()) { + if (mDPUInfo.dpuInfo.ppc) + it->setPPC(static_cast<float>(mDPUInfo.dpuInfo.ppc)); + if (mDPUInfo.dpuInfo.max_disp_freq) + it->setClockKhz(mDPUInfo.dpuInfo.max_disp_freq); + } + return ret; } |