summaryrefslogtreecommitdiff
path: root/libhwc2.1/libdisplayinterface
AgeCommit message (Collapse)Author
2022-10-05libhw2.1: change mIDLHistogram to shared_ptrsusi_su
change mIDLHistogram to shared_ptr to avoid memory error when destructing ExynosDisplayDrmInterfaceModule add lock when dealing with roi, weights, thresholds to avoid race between set and use of these data bug: b/240292495 test: tested by a histogram client program locally Change-Id: I08e60dfc787b046d922ba1abc17745695b5034a7
2022-05-15libhwc3, libhwc2.1: refactor histogram data structsusi_su
To support common histogram interface call from HWC pixel-display aidl, refactor histogram data struct separate WHI-Pro dependent data struct into HistogramInfo.h & histogram_control.h respectively. Bug: 176922790 test: local test with a histogram client program Change-Id: I0466b00cc645faba2fc3e8a761754f2bee2f1c67
2022-05-02libhwc2.1: support solid color layer dimming in HWCLong Ling
Bug: 230570414 Change-Id: Id55b717750d6dcae51a9228d76e883ae7805346d
2022-03-02libhwc2.1: Add Histogram handling codesYongWook Shin
It creates Histogram related functions and adds related handling codes. Bug: 197519352 Signed-off-by: YongWook Shin <yongwook.shin@samsung.com> Change-Id: I405e0b09083eb2c242b6bac81caefebc836f0e9a Merged-In: I405e0b09083eb2c242b6bac81caefebc836f0e9a (cherry picked from commit 562d354824eaba5d6e6a04dc7286e8d50e433781)
2021-12-21libhwc2.1: pass panel name and serial to displaycolorLong Ling
Bug: 172619016 Change-Id: I7f8d9b7de1aa20db8b6158e2d712b3fc813cd4fe
2021-11-23libhwc2.1: update for newly added BrightnessControllerLong Ling
Bug: 200332096 Change-Id: I002420af4039a56e571d7d2f4bf0548407c542dd
2021-09-11libhwc2.1: Support two pipeline for displaycolorWeizhung Ding
Support two pipeline for displaycolor and move mDisplayColorInterface to ExynosDeviceModule Bug: 181262509 Test: switch display and check the color effect Change-Id: Ie99009295efef937fd4816e872c22ce2667805a6
2021-09-11libhwc2.1: Add cgc_lut property checkerYongWook Shin
cgc_lut property is changed for GS201. To prevent old style cgc configuration failure, property checking codes are added. Bug: 187006158 Signed-off-by: YongWook Shin <yongwook.shin@samsung.com> Change-Id: Ia539b48caa3e6a68b95e7660b6b14118851ffd67 Merged-In: Ia539b48caa3e6a68b95e7660b6b14118851ffd67
2021-09-02libhwc2.1: re-enable displaycolorHyunKyung Kim
Bug: 197942811 Test: device boot and suspend/resume work Test: Check color modes with mock calibration file Change-Id: I7a81f9dd1bb7e3193cf76a4e0b3204e67cfc2511 Merged-In: I7a81f9dd1bb7e3193cf76a4e0b3204e67cfc2511
2021-09-02[HACK] libhwc2.1: Remove code for libdisplaycolorHyunKyung Kim
This commit should be used for only Home screen bring-up. Bug: 197942811 Test: device boot and suspend/resume work Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Signed-off-by: Pat Tjin <pattjin@google.com> Change-Id: I3a7b6e3ac94eafd4df2cd79fcdc9768a67e71c16 Merged-In: I3a7b6e3ac94eafd4df2cd79fcdc9768a67e71c16
2021-08-30Merge "libhwc2.1: Apply namespace gs101" into sc-v2-devTreeHugger Robot
2021-08-27libhwc2.1: pass display info to displaycolorLong Ling
Bug: 194444865 Change-Id: I3b316982a10b6f4c202896a0da392bb6ff25c371
2021-08-27libhwc2.1: Apply namespace gs101YongWook Shin
To support SoC variations, it requires namespace separation. This commit encloses class codes and globals with namespace gs101. And gs101 codes will be used as base implementations for all SoC variations. Bug: 197942811 Test: device boot and suspend/resume work Signed-off-by: YongWook Shin <yongwook.shin@samsung.com> Change-Id: I5aa8b20cf351c291ed42d1d8b4cd343040210e4a Merged-In: I5aa8b20cf351c291ed42d1d8b4cd343040210e4a
2021-06-21libhwc2.1: Force display color setting after readbackHyunKyung Kim
Display color setting could be skipped when readback was requested in the common code. This patch forces to set display color setting in the first frame after the frame that skipped display color setting. Bug: 175422660 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I68f8d2da4204ba595124c3c75d491a6a18322c11
2021-05-12libhwc2.1: track dpp old blobs by plane idLong Ling
Track dpp old blobs by plane id instead of dpp index. blobs are plane data and should be grouped by plane id not by dpp index which is used to retrive layer color data. For example frame 1 has 4 layer color data and frame 2 has 3 layer color data. The old blobs tracked by dpp index 3 (the 4th layer) won't be accessed by the second frame. However, the plane assigned to dpp index 3 at frame 1 could be assigned to dpp index 2 frame 2. One issue is the plane's blob can't be cleared. Bug: 187517905 Test: play hdr video and no white flash at screen rotation. Change-Id: I3f20b22b5b884cb7f9b60d0817b39add100fd06a
2021-04-28libhwc2.1: load displaycolor after init drm deviceLong Ling
Display driver is in fully ready status after setActiveConfig which has been called during drm device initialization. Bug: 186446401 Test: reboot and no failed reading panel serial in displaycolor log Change-Id: Ic0420446a1769dacb9fc7fcd847faa9bcfbc081f
2021-03-18libhwc2.1: Check if display interface is validHyunKyung Kim
This fatch removes display from mDisplays if display interface is not valid. Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Ie494b07d755b5c0e815dd08e17ea3e9f1ab296e4
2021-03-11libhwc2.1: Notify displaycolor after color data appliedLong Ling
Notify displaycolor after each stage color data has been applied. Bug: 181583470 Change-Id: I70411ba31a710cfb6f419cae07f4cd808eddbebe
2021-01-14libhwc2.1: put client composition under control of displaycolorLong Ling
To allow displaycolor dim client composition layer. Bug: 168225512 Change-Id: Ic9b5061c0636daec8fb7c713ccfce206c5593f84
2020-11-25libhwc2.1 force layer color update if assigned plane changesLong Ling
If a layer's assigned plane has changed, force to update the DPP's color settings. Bug: 174193808 Change-Id: Ie29f7865afec795de4a4196739946ccd6af15aa6
2020-10-21libhwc2.1: Skip blob property settingHyunKyung Kim
This patch skips setting blob property if there is no update in color setting. Then kernel will re-use previous setting. Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I7c5e94635e8a3658135624135e13e980f024a475
2020-10-21libhwc2.1: Propagate bpc, dither setting to kernelHyunKyung Kim
Bug: 162245744 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Iaf1b8d420bac98d995fa82a21c17037d7f4c172e
2020-10-14hwc/gs101: Update for new displaycolor interfaceLong Ling
New displaycolor interface separate config data from stage data. Change-Id: I21313ca28776850c35a3a3223634e172aa49e6ba
2020-10-09libhwc2.1: Re-use blob if it is not changedHyunKyung Kim
Bug: 159753688 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I9fb3e41a33b22785fcbc1ad6945ba51906a07bf7
2020-09-10libhwc2.1: Propagate gamma, linear matrix to kernelHyunKyung Kim
Bug: 159715969 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I4ca36ecf4d92383e0e13658341c3b9160521c3e6
2020-09-10libhwc2.1: Set property for dqe disableHyunKyung Kim
We should set property with blob id 0 in order to disable DQE. No setting property means that driver should use previous setting. Bug: 157658738 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Id97622cef10a548b53fe5e2677bb90388d655485
2020-09-10libhwc2.1: Change license of header fileHyunKyung Kim
This patch removes definitions for fb interface and changes license of DeconCommonHeader.h. Bug: 149514037 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I2a94d517829aadceda94fda3ecb7bfdf09c2e30c
2020-09-10libhwc2.1: Destroy old blobs for hdr after commitHyunKyung Kim
DrmModeAtomicReq destorys old blobs after commit. This patch adds old blobs for hdr to DrmModeAtomicReq. Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I11a24aa7cdf8264c6c0cae61b2e13478fd512234
2020-09-10libhwc2.1: Use kernel header for drm interfaceHyunKyung Kim
Structures and defines for hdr are defined in kernel header. HWC includes kernel header in TARGET_BOARD_KERNEL_HEADERS instead of defining them internally. Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I617aa14de2dadd67d05929fa5a9f9e7fee53075c
2020-07-31libhwc2.1: load displaycolor library at runtimeLong Ling
To remove HWC compile dependency on vendor. Bug: 158048652 Change-Id: Ifae4b4fa2bb7079e6fbbfb2910b8b722a787c530 Signed-off-by: Long Ling <longling@google.com>
2020-06-17libhwc2.1: Set property for hdr disableHyunKyung Kim
We should set property with blob id 0 in order to disable HDR. No setting property means that driver should use previous setting. Bug: 143335640 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Iac1e15e3e6004434f5f242ade994ff6801927c57
2020-05-21libhwc2.1: Fix bug destroying blob before commitHyunKyung Kim
Bolbs for plane color setting were destroyed before atomic commit. setPlaneColorSetting() is called for each plane. setPlaneColorSetting() destroyed blobs of other plane even though atomic commit is not done yet. Dtm property setting was failed because of this bug. This patch fixed this bug. Bug: 143335640 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I89073fbf7a51a4c9857ff081e910813ae20fcc74
2020-04-29libhwc2.1: Support color managementHyunKyung Kim
Bug: 143335640 Bug: 154275156 Change-Id: Ib89afaa475ab795a40d0da24dde67ec7522529e2 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-04-24libhwc2.1: Create inherrited class for drm interfaceHyunKyung Kim
ExynosPrimaryDisplayDrmInterfaceModule is the class for the sepcific implementation of primary display in exynos9820 chipset. ExynosExternalDisplayDrmInterfaceModule is the class for the sepcific implementation of external display in exynos9820 chipset. Bug: 154275156 Change-Id: I1a6a730ddb80deccf135438dbcc7575605e177f1 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2020-03-02libhwc2.1: Remove code related to fbdevHyunKyung Kim
Bug: 149047202 Change-Id: I62c2856da57241912b538d45232400db4b892d7a Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2019-10-28libhwc2.1: Move fb interface specific functionHyunKyung Kim
This patch creates ExynosPrimaryDisplayFbInterfaceModule instead of ExynosDisplayFbInterface. ExynosPrimaryDisplayFbInterfaceModule implementation can be different according to chipset. Implementation setting idma_type is in ExynosPrimaryDisplayFbInterfaceModule because it is different according to chipset and it is fb interface specific implementation. Change-Id: I8816b0bed2769ce9309bf95f19671ece75c3f772 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>