summaryrefslogtreecommitdiff
path: root/libhwc2.1/libresource/ExynosResourceManager.cpp
AgeCommit message (Collapse)Author
2020-06-11libhwc2.1: Support setLayerColorTransformHyunKyung Kim
Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I275d3e93bac3ff1ad395a5ff33820f7459d08063
2020-06-11libhwc2.1: Use module attribute mappingHyunKyung Kim
Mapping between dpu attribute and mpp attribute can be different. Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I1193d705a368d3f54283c24bbba4185d5626dab8
2020-06-10libhwc2.1: Plumbing to move attribute table to moduleSungjun Bae
Change-Id: I4c1cda5e9c5537b0c0c44b3cf9f4dffea93a29e8 Signed-off-by: Sungjun Bae <june.bae@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-06-10Revert "libhwc2.1: Add flag to set to need degamma operation"Sungjun Bae
This reverts commit 7ff9bfbb457eee783212c8cc3e9e07be1db82a8b. Change-Id: I2ff4ac7a2f669e74e6379fa67b941b0ba07384ae Signed-off-by: Sungjun Bae <june.bae@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-04-23libhwc2.1: Fix bug in checking dst align resrictionHyunKyung Kim
Dst position and size should be aligned with 16 if destination image is AFBC compressed and background layer is not used. This patch applies this restriction. mNeedCompressedTarget rather than dst.compressed indicates whether dst buffer is compressed or not. Previous code used dst.compressed to check whether dst buffer is compressed. This patch fixed this bug. Bug: 143335430 Change-Id: I439f2d9ab2144d886238c872696bd4ae84e8db5b Signed-off-by: HyunKyoung <hk310.kim@samsung.com>
2020-04-17Merge "libhwc2.1: Fix bug in aligning m2mMPP out image size" into ↵TreeHugger Robot
qt-hammersmith-dev
2020-04-03libhwc2.1: Fix bug in aligning m2mMPP out image sizeHyunKyung Kim
m2mMPP out image size should be aligned to restriction DPP channel. There was a bug to get DPP channel restriction with invalid DPP channel type. This patch supports to align m2mMPP out image size according to different type of DPP channel in different soc chipsets. Bug: 143335057 Change-Id: I96dd61a8766aa2062ac122e1f2ad428007b67175 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-26Merge changes from topic "gs101-print-transform-error" into qt-hammersmith-devTreeHugger Robot
* changes: libhwc2.1: Fix managing client composition info libhwc2.1: Fix handling solid color layer having buffer libhwc2.1: Support readback feature in drm interface libhwc2.1:libdrmresource: Enable writeback [google] libhwc2.1: Print log in color transform error case
2020-03-24libhwc2.1: Fix bug in checking flip attributeHyunKyung Kim
There was bug that dpu channel didn't support flip operation even if display driver set DPP_ATTR_FLIP attribute flag. It was because MPP_ATTR_ROT_180 was mapped with DPP_ATTR_ROT. MPP_ATTR_ROT_180 should be mapped with DPP_ATTR_FLIP bacause ROT_180 is same with FLIP_H | FLIP_V. This patch removes ROT_180, ROT_270 mapping. They can be expressed by the combination of FLIP_H, FLIP_V, ROT_90. Bug: 143333462 Bug: 143333561 Change-Id: I32c08952a21eac0180275b50708c98bc36944f6e Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-24libhwc2.1: Remove MPP_ATTR_CUSTOM_ROT attrHyunKyung Kim
HWC checks checkRotationCondition() in default. Bug: 143333462 Bug: 143333561 Change-Id: I29039c60486a0dc1e8aaae9eb9bc7b826b8d418c Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-19[google] libhwc2.1: Print log in color transform error caseHyunKyung Kim
Change-Id: I05579ba62167b662c450cffa2181970c159e0248 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-13libhwc2.1: Sort out format_typeHyunKyung Kim
This patch adds field for compression type to format_type. This patch addresses the case that there could be multiple format descriptions with same halFormat. Change-Id: I6078f3b820dadca64983014bf614506b41e7dc49 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-13libhwc2.1: Remove unnecessary error definingHyunKyung Kim
This patch uses error that kernel rturns instead of defining a new error type. Change-Id: Ib8a09dad553053fee0dad7bebcf6171cb62a8f16 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-11libhwc2.1: Fix bitwise logic check for MPP support of HDR10+Daniel Solomon
Bug: 143335640 Change-Id: Iaedaa2e60af509a390f6902525a232e1d2703426
2020-03-09libhwc2.1: Call sizeof(variable) instead of sizeof(type)HyunKyung Kim
This patch calls sizeof() with real variable instead of type. Change-Id: Ic13a7e936f298b4c70012047f8909600927382ed 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: Plumbing metadata transefer to G2DSungjun Bae
Bug: 143335640 Change-Id: Iebac3b3f2d7638d064a49f3de0e0036dc976e6e0 Signed-off-by: Sungjun Bae <june.bae@samsung.com>
2020-03-04libhwc2.1: Conditional support of color transformMingu Jeon
This patch composites layer with GLES when display doesn't support color transform. Change-Id: I90cbdf2f2b58b34a04f92b008612a024b178ba14 Signed-off-by: Mingu Jeon <mingu85.jeon@samsung.com>
2020-03-04libhwc2.1: Support color transformMingu Jeon
Change-Id: I0644ae369954537055f3322ca20f15bee74cdef0 Signed-off-by: Mingu Jeon <mingu85.jeon@samsung.com>
2020-03-02libhwc2.1: Cleanup for updateRestrictions()HyunKyung Kim
Change-Id: I7fb66447201454b0b8eb6aaf06fdcfaafa1bb01b Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-02libhwc2.1: Update only when M2M MPP is availableSeunghwan Lee
Change-Id: If792ec92cf5af7a1c9c989dae0e0f0d08bd38c0a Signed-off-by: Seunghwan Lee <sh3885.lee@samsung.com>
2020-03-02libhwc2.1: Update restriction and feature regardless of interface typeHyunKyung Kim
Update restriction and feature table regardless of interface type using mDPUInfo. mDPUInfo would be updated by updateRestrictions() according to interface type. Change-Id: I2e8e388be626932d8b4a1594c8337867d862c160 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-02libhwc2.1: Rename Decon to DpuSeunghwan Lee
Change-Id: I7bb7b2b4ba42efa9280a096f7c5fd6432686dba7 Signed-off-by: Seunghwan Lee <sh3885.lee@samsung.com>
2019-10-28libhwc2.1: Clean up source codeHyunKyung Kim
Change-Id: I3ac0e8494acdb752c4af227035b5716b2a5c0c0d Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: Remove mIsDimLayerHyunKyung Kim
We can check dim layer with mLayerFlag. mIsDimLayer is redundant. Change-Id: Ia55bfa32f11b2cbe83211840356ad548661ea40b Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: Change data structure to manage window configuration infoHyunKyung Kim
Window conifuguration for DPU can be delivered to DPU driver using different interface. ExynosDisplay manages window configuration with the data structure that is independent from interface. Each interface class converts configuration data according to used interface. Change-Id: Id46715f6777cdee62763fe3ad24fcb9318441160 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: Add function to set frame rate for performance infoHyunKyung Kim
This patch adds function to set frame rate for calculating performace. Frame rate to calculate performance information can be changed. Change-Id: Ibcbff5eb5faa938151f0badd6571f5fe960753e2 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: prevent the fatal error when the g2d combo is busySeungpyo Hong
Change-Id: I9ebe6a76cc07411e90c8a8753e58a05509699693 Signed-off-by: Seungpyo Hong <sp.hong@samsung.com>
2019-10-28libhwc2.1: modify G2D degamma attributeSeungchul Kim
Change-Id: I027a77223e1e9435f5813167d18d533a623320b9 Signed-off-by: Seungchul Kim <sc377.kim@samsung.com>
2019-10-28libhwc2.1: fix mNeedDegamma enable conditionSeungchul Kim
Change-Id: I75c9bbab790572706601e19f096052240bc536c2 Signed-off-by: Seungchul Kim <sc377.kim@samsung.com>
2019-10-28libhwc2.1: Bypass dataspace conversion of non-HDR videoHyunKyung Kim
This patch bypasses dataspace conversion of non-HDR video when color mode is NATIVE. Change-Id: I7eabaf49bf54d335f322cc5cdf207377bfae80b9 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: Set client composition layers first in resouce assignmentHyunKyung Kim
HWC should not change compositionType of layer that SurfaceFlinger requested to set to HWC2_COMPOSITION_CLIENT. compositionType can be set to HWC2_COMPOSITION_EXYNOS by addExynosCompositionLayer() if mValidateCompositionType is HWC2_COMPOSITION_INVALID because resource is not assigned to the layer yet. This patch sets mValidateCompositionType of layers that SurfaceFlinger requested to set HWC2_COMPOSITION_CLIENT first. Then addExynosCompositionLayer() can't set compositionType to HWC2_COMPOSITION_EXYNOS. Change-Id: Ie2ca2ed6aac5f8578d98ba60b5cb82a822d828b5 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-23libhwc2.1: Support DRM interfaceHyunKyung Kim
Change-Id: I2bc40d895f682ea51f179a26e56e2748a171072d Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-23libhwc2.1: Move code for device interface to separate filesHyunKyung Kim
Change-Id: Ic7f6d8544ecfc34f51ca9117d18f02978c466242 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-23libhwc2.1: Use interface for interfacing with display deviceHyunKyung Kim
HWC interfaces with display device using ExynosDeviceInterface, ExynosDisplayInterface. Change-Id: Id76b6839d4d82b17db4cefd7953ece059c0b9c38 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-23libhwc2.1: Remove code related to HWC1.x layer flagHyunKyung Kim
HWC_SKIP_LAYER, HWC_SET_OPAQUE, HWC_DIM_LAYER were set by SurfaceFlinger. Those flags are not set in HWC2 version. Change-Id: I9a442e7b672ff7541d3debd33c6a49cbc332181a 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>