summaryrefslogtreecommitdiff
path: root/libhwc2.1/ExynosHWC.cpp
AgeCommit message (Collapse)Author
2023-03-02libhwc2.1: support SKIP_VALIDATE by defaultMidas Chien
SKIP_VALIDATE is deprecated in HWC3 and it is not used by SF in U. It should be considered enabled by default. Start from HWC3, don't add SKIP_VALIDATE to the capability list and change code to support it by default. Bug: 270479799 Test: VtsHalGraphicsComposer3_TargetTest Test: VtsHalGraphicsComposerV2_4TargetTest Change-Id: I30979e56b8be96c6478e5ceaadfbc1145537e804
2022-11-15libhwc2.1: HWC updates boot config when setActiveConfigWithConstraints()joenchen
HWC2 does not support setBootDisplayConfig(), so it updates the boot config property when setActiveConfigWithConstraints() changes resolution Test: change resolution Bug: 244492960 Change-Id: If71d920dd6ec93a85cf8e79d3b290a585c19d260
2021-05-20libhwc2.1: Support SoC specific namespaceYongWook Shin
To support SoC variations, SoC specific codes will support own namespace. Common codes will use specific namespace defined by build variable such as TARGET_BOARD_PLATFORM. Bug: 186905324 Signed-off-by: YongWook Shin <yongwook.shin@samsung.com> Change-Id: I4667525730308f683555e331df92cb0e2725fa0a
2021-04-07libhwc2.1: Using ExynosDeviceModuleSungjun Bae
Bug: 172968540 Test: Enable SF cache with basic operations Change-Id: Iead1cd29f81471e0c51c486c672cfc28f90a067e Signed-off-by: Sungjun Bae <june.bae@samsung.com>
2021-03-22libhwc2.1: Add nullptr display checkHyunKyung Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I1666226881591f79748fd81854f79e6509b3dfb9
2021-03-19libhwc2.1: modify concept of display's type and IDSeungchul Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Change-Id: I4926f2b30abc2a9b4ddf1c47038ac7b9573213b1 Signed-off-by: Seungchul Kim <sc377.kim@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-12-23libhwc2.1: Change return value of HWC APIHyunKyung Kim
Bug: 164139096 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I6c3981d9f12f1798b7cbcbeb6d6d1fc8a989c660
2020-12-23libhwc2.1: Support setActiveConfigWithConstraintsSungjun Bae
Bug: 164139096 Change-Id: I561a23c386a63b02259e373d169447b177ebfc63 Signed-off-by: Sungjun Bae <june.bae@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-12-23libhwc2.1: Plumbing HWC 2.4 APIsSungjun Bae
Bug: 164139096 Change-Id: Ie42c5f28532f91e50acd338c5356977519ce1a69 Signed-off-by: Sungjun Bae <june.bae@samsung.com>
2020-06-11libhwc2.1: Check nullptr parameter of HWC APIHyunKyung Kim
Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Ib042aaf4b799580a86a9c7d21781b4ce00237290
2020-06-11libhwc2.1: Support setLayerColorTransformHyunKyung Kim
Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I275d3e93bac3ff1ad395a5ff33820f7459d08063
2020-05-15libhwc2.1: Capture readback data to fileHyunKyung Kim
We can capture readback data to the file with command below. adb shell vndservice call Exynos.HWCService 11 i32 0 i32 201 i32 1 File is under /data/vendor/log/hwc. SurfaceFlinger or VTS guarantee function call in the order setReadbackBuffer() -> presentDisplay(). However vndservice doesn't guarantee. Therefore setReadbackBuffer() and presentDisplay() including presentPostProcessing() should be synchronized with mDisplayMutex. Bug: 151273334 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Ie5d203aaab76f2ca636444bcb57a5906f6b0b106
2020-03-13libhwc2.1: Move validataion check of parameterHyunKyung Kim
This patch checks paramters at the beginning of the function. Change-Id: Ia371a944bab5c4d0e1614493b722248a4778c489 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-09libhwc2.1: Clean up code related to metadataHyunKyung Kim
Change-Id: I478709b77ded7d2fe199e56ac1f662807cbeec69 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-09libhwc2.1: Fix bug for setPerFrameMetadataBlobsSungjun Bae
Bug: 143335640 Bug: 148890521 Change-Id: Ie753c14e02783eeb9e40ebc5f2f311bb1853736e Signed-off-by: Sungjun Bae <june.bae@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-09libhwc2.1: Use Dynamic metadata parser for OMXSungjun Bae
Bug: 143335640 Bug: 148890521 Change-Id: Ic4cd69864cba79539b828b2efdc7de80a176506e Signed-off-by: Sungjun Bae <june.bae@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-09libhwc2.1: Plumbing HWC 2.3 APIsSungjun Bae
Change-Id: Ia3a2ad08798723f28e8e66c315fedf150160bc7d Signed-off-by: Sungjun Bae <june.bae@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-09libhwc2.1: Support readback featureHyunKyung Kim
Change-Id: I33118617a4a593973e12094cb82e134a0f6b93b5 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-09libhwc2.1: Support render intent according to configurationHyunKyung Kim
Change-Id: Ic6b27199102b0422ec74c841b6b3e4d6a23446af Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-09libhwc2.1: Add exception about intents.Mingu Jeon
Returned BAD_PARAMETER when invalid intents was passed to setColorModeWithRenderIntents and getRenderIntents. Change-Id: I8c6db4639f58bb7e65f804c2bab25868d7b079c8 Signed-off-by: Mingu Jeon <mingu85.jeon@samsung.com>
2020-03-09libhwc2.1: Support render intent.Mingu Jeon
Change-Id: I27969d9060f6ac29839aaab384f002011019099c Signed-off-by: Mingu Jeon <mingu85.jeon@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-02-20libhwc2.1: Remove __unused attributeHyunKyung Kim
Change-Id: I58145ca227687c257bd08c884799aa8cc69bad96 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-02-20libhwc2.1: Do acceptDisplayChanges() if display was validatedHyunKyung Kim
When presentDisplay is called without acceptDisplayChanges, call acceptDisplayChanges in presentDisplay, if client already called validateDisplay. validateDisplay can be called by validateDisplays() in HWC. So even though mRenderingState is RENDERING_STATE_VALIDATED, SurfaceFlinger may not have called validateDisplay yet. presentDisplay() should return HWC2_ERROR_NOT_VALIDATED if HWC should reassign resources in this case. This patch doesn't use mRenderingState to check client(surfaceflinger or vts) already called validateDisplay(). This patch uses new member variable(mHWCRenderingState) instead of mRenderingState. Bug: 140158079 Bug: 140158240 Change-Id: Ia9bb963fc038acf551dbe2d2545b498d5ad2d072 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-02-20libhwc2.1: Add exception code in functionsMingu Jeon
If mode value is negative, return BAD_PARAMETER in - setColorMode - setPowerMode If the layer didn't exist in display, return BAD_LAYER. - destroyLayer Bug: 140158079 Bug: 140158240 Change-Id: Ia181246a4be69843d11b625a972e4642fb68f253 Signed-off-by: Mingu Jeon <mingu85.jeon@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-09-18Add initial source codeHyunKyung Kim
Change-Id: I285a55c44c9fd5d3a8abaa781ef9dc8d9d39f53a Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>