summaryrefslogtreecommitdiff
path: root/libhwc2.1
AgeCommit message (Collapse)Author
2021-08-26libhwc2.1: check libdisplaycolor versionLong Ling
Load displaycolor when version string matches expectation. Otherwise disable displaycolor. Bug: 197758661 Bug: 193068217 Test: boot to home w/o or mismatched libdisplaycolor Change-Id: Ibc23b80f5574d725ff089deeacc2fc9de0f3910f
2021-08-11hwc/gs101: set enhanced hbm when LBE HBM mode am: 96cc675684 am: 83c025cb0clinpeter
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/graphics/gs101/+/14056759 Change-Id: I44abb9bd08de8b005a95980cbc7888e27dbf1673
2021-08-09hwc/gs101: set enhanced hbm when LBE HBM modelinpeter
Bug: 177144573 test: check IRC OFF when LBE HBM mode Change-Id: I4d00fffaba7fd7093b60e9341ded99ab2b9c0553
2021-07-23Merge "hwc/gs101: correct dimming st check" into sc-dev am: 33ed3676bdTreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/graphics/gs101/+/15287618 Change-Id: I9baa8c64a69573677cd7ac37c9a9d608449d0888
2021-07-23Merge "hwc/gs101: correct dimming st check" into sc-devTreeHugger Robot
2021-07-22hwc/gs101: correct dimming st checklinpeter
Bug: 191851821 test: check st dimming Change-Id: I6af1ae76b645777768123e0cf10f23f0a0f0afcb
2021-07-20libhwc2.1: force update plane color if dc dpp index changes am: cbd531498dLong Ling
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/graphics/gs101/+/15339771 Change-Id: I52d198405a9d7fbf812e458085e46d3405867c4f
2021-07-20libhwc2.1: force update plane color if dc dpp index changesLong Ling
The mapping among displaycolor, hwc and drm: displaycolor dpp index <---> hwc layer <---> drm plane id. Force update plane color if the assigned displaycolor dpp index changes. Bug: 193285185 Test: scrolling image list in Chrome during pip YT video playback Change-Id: I53975fe412051fede9302183c6761d7abb15d1bc
2021-07-16libhwc2.1: change default g2d capacity to 3.5ms am: d55594f911Midas Chien
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/graphics/gs101/+/15283893 Change-Id: I1f1290043012567cc9f6793ecf265194c2fbd3ac
2021-07-16Revert "libhwc2.1: set frame rate for acryl module" am: 471620b3acMidas Chien
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/graphics/gs101/+/15258457 Change-Id: I9da1c1de7eaa343b8b6dc7f4cf03cecb94ddaf2d
2021-07-15libhwc2.1: change default g2d capacity to 3.5msMidas Chien
The work duration is the same regradless of refresh rate and work duration is set to 8.3ms. Change default g2d time to 3.5ms for now. Bug: 177216165 Test: play 1080p, 2k, 4k video with downscale request Change-Id: I97bb3a76708b5185511292dab8c7cf28d4723f63
2021-07-15Revert "libhwc2.1: set frame rate for acryl module"Midas Chien
This reverts commit b37391542bc82d1b9491ac4b3d6266c86a5c2282. Reason for revert: according capacity to calculate bw Bug: 177216165 Test: play 1080p, 2k, 4k video with downscale request Change-Id: I24633524063ada01cee1eaa69b9e74b996cd89f0
2021-07-13libhwc2.1: define new backlight nodeWeizhung Ding
Bug: 186525013 Test: backlight can be adjusted Change-Id: Ib5dd5cee644bd09b75f70a1c091c49c6573cab16
2021-07-12Merge changes from topic "187763532" into sc-devLong Ling
* changes: libhwc2.1: pass hdr full screen status to displaycolor libhwc2.1: check RR compensation enabled status w/o refresh rate libhwc2.1: support smooth display compensation
2021-07-09libhwc2.1: pass hdr full screen status to displaycolorLong Ling
Bug: 189928400 Change-Id: I0109d71d985518556a39e15fbc066aefc85bf0bf
2021-07-08libhwc2.1: check RR compensation enabled status w/o refresh rateLong Ling
As long as there is one RR regamma data, any refresh rate switching from/to that refresh rate will need to be handled properly. Bug: 187763532 Change-Id: Iedbdba4199e66dea8bb7e6e4060e569c75521037
2021-07-07libhwc2.1: support smooth display compensationLong Ling
1. update scene after during presentDisplay. 2. check if early wakeup is needed. Bug: 187763532 Change-Id: I3c912e27b69ab67dc6e7a5ff2ea6df4bd2e31621
2021-07-07Revert "libhwc2.1: M2M dst buffer has SBWC format as default"Midas Chien
This reverts commit 8c5bce26a45589f33a5014a7be3fcd6103f3297e. Reason for revert: bad g2d performance Bug: 192287346 Test: G2D downscale 1/4, 1/9, 1/16 Change-Id: I80ea42a419f1994adab06920fd521352a0844b7e
2021-06-28Merge "libhwc2.1: Apply updated PPC table" into sc-devMidas Chien
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-06-22libhwc2.1: Apply updated PPC tableYongWook Shin
PPC table is updated in kernel side. It updates PPC table as updated kernel side PPC table values. Bug: 177310644 Signed-off-by: YongWook Shin <yongwook.shin@samsung.com> Change-Id: If3a9e7d61ab16a818da722955e512bd783b4b94a
2021-06-10hwc/gs101: atc st dimminglinpeter
Added the atc st dimming mechanism Bug: 181286324 test: atc st change Change-Id: I365c2d904f5f874fa2bf4d22d0eea0b3468aa3bf
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-05-11Merge "libhwc2.1: lhbm compensation" into sc-devLong Ling
2021-05-06hwc/gs101: apply atc setting when it's changed.linpeter
Set atc setting to sys file node if value is changed. And call invalidate() only when it needs to apply new atc setting to avoid unnecessary frame update. Bug: 183349400 test: check set atc setting if changed Change-Id: I746433980cb47bd914c74e8bbe9e41241f0c82ed
2021-05-04libhwc2.1: lhbm compensationLong Ling
Pass lhbm status and dbv to displaycolor. Read back the adjusted dbv value. Bug: 184096624 Change-Id: If1f6363196a768fb902e1692aadb30a669537419
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-04-12Merge "libhwc2.1: Disable skipStaticLayer" into sc-devYichi Chen
2021-03-30libhwc2.1: Disable skipStaticLayerHyunKyung Kim
Bug: 172968540 Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I8dfb31ae19971f14094dd951b461bef3d6ea9e5e
2021-03-29libhwc2.1: set brightness mode in displaycolor sceneLong Ling
Bug: 143292983 Change-Id: I7ad3fccdf5bc9cfa1c69d50d11e5b3adeb68a893
2021-03-23Merge changes from topic "dual_display" into sc-devWeizhung Ding
* changes: libhwc2.1: Clean up code related to multi display libhwc2.1: Change function name for readability libhwc2.1: Disable forceReserveMPP libhwc2.1: Reserve DPP to the specific display libhwc2.1: Check if display interface is valid libhwc2.1: Support dual display libhwc2.1: support multi display with resource table libhwc2.1: add display define table and arrange code libhwc2.1: Modify concept of display's type and ID
2021-03-18libhwc2.1: Clean up code related to multi displayHyunKyung Kim
Use std::array, std::string instead of c style code Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Ia2704774dad23807a95656f4085dcaa4e2109944
2021-03-18libhwc2.1: Change function name for readabilityHyunKyung Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I496641e55579ba72701b497720945fe7dbd88a54
2021-03-18libhwc2.1: Disable forceReserveMPPHyunKyung Kim
HWC would check power status when it reserve the MPP to the display. HWC reserves MPP to the display only if the display is on. Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: Ibadf9481b43891eb26ae2316b0e7cb87a3d00408
2021-03-18libhwc2.1: Reserve DPP to the specific displayHyunKyung Kim
Enable configuration to reserve MPP to the the specific display even if the display is not connected. Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I9d2d37423ffc3e50107ff3d2dce9c8095a992625
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-18libhwc2.1: Support dual displayHyunKyung Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com> Change-Id: I1740ea3caa9c1e8a329f53a5c861ccb4ef0c3612
2021-03-18libhwc2.1: support multi display with resource tableSeungchul Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Change-Id: Ic8983d5016d62ba4ef5838d48d9801b8cffb4937 Signed-off-by: Seungchul Kim <sc377.kim@samsung.com>
2021-03-18libhwc2.1: add display define table and arrange codeSeungchul Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Change-Id: I56666c739a96ab06cbe4d32fcfb722d14d03e6ff Signed-off-by: Seungchul Kim <sc377.kim@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2021-03-18libhwc2.1: Modify concept of display's type and IDSeungchul Kim
Bug: 162322019 Test: single/dual display boot to OS, and suspend/resume Change-Id: Iebac9728b274eef0b3291fd4505edfe8ec51ca97 Signed-off-by: Seungchul Kim <sc377.kim@samsung.com> Signed-off-by: HyunKyung Kim <hk310.kim@samsung.com>
2021-03-17hwc/gs101: use new jsoncpp parse APIlinpeter
Json Reader is deprecated upstream Bug: 182959727 test: check read data Change-Id: Ife0163ac63bb7f796a3c51f68e868f404e4033f2
2021-03-17hwc/gs101: ATC mode/ambient light controlPeter Lin
Configure the ATC mode setting and set ambient light Bug: 168848203 Bug: 182959727 test: check lbe state/ambient light change Change-Id: Id071e62aa9fc0bc6c45db235f233c202015c1d24
2021-03-17hwc/gs101: parse atc profilePeter Lin
Parse the atc profile for atc mode setting. Mode setting includes lux mapping(ambient light and strength) and sub atc setting. Bug: 168848203 Bug: 182959727 test: parse a profile file and check atc default value Change-Id: I92efa191a8b1ece952a9477ea204302802916bdd
2021-03-17Revert "hwc/gs101: parse atc profile"Adam Shih
Revert "libhwc2.1: Add IDisplay/default interface to HWC" Revert submission 13427428-hwc_lbe Reason for revert: build line broken Reverted Changes: I5d1781532:hwc/gs101: parse atc profile Id2bfe06cb:hwc/gs101: ATC mode/ambient light control Ie5a1270e7:libhwc2.1: Add IDisplay/default interface to HWC Bug: 182959727 Test: full build pass Change-Id: I1a93897734db8051bb19ae3af7f9c7bef34bcf41
2021-03-17Revert "hwc/gs101: ATC mode/ambient light control"Adam Shih
Revert "libhwc2.1: Add IDisplay/default interface to HWC" Revert submission 13427428-hwc_lbe Reason for revert: build line broken Reverted Changes: I5d1781532:hwc/gs101: parse atc profile Id2bfe06cb:hwc/gs101: ATC mode/ambient light control Ie5a1270e7:libhwc2.1: Add IDisplay/default interface to HWC Bug: 182959727 Test: full build pass Change-Id: Id8ba72c52e6256c0625670bf1a66026bf572b61a
2021-03-16hwc/gs101: ATC mode/ambient light controllinpeter
Configure the ATC mode setting and set ambient light Bug: 168848203 test: check lbe state/ambient light change Change-Id: Id2bfe06cb74d3e40c222406774fee83619df3f74
2021-03-16hwc/gs101: parse atc profilelinpeter
Parse the atc profile for atc mode setting. Mode setting includes lux mapping(ambient light and strength) and sub atc setting. Bug: 168848203 test: parse a profile file and check atc default value Change-Id: I5d178153285de817ac822f15c3465c677884eaf3
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-19Merge "Revert "libhwc2.1 force dpp update every frame""TreeHugger Robot
2021-01-19Revert "libhwc2.1 force dpp update every frame"Long Ling
This reverts commit fe97ba625ab961b9cef725e42b5eefffb5a12db1. Bug: 177696623 Bug: 174244159 Signed-off-by: Long Ling <longling@google.com> Change-Id: If56feb7270984e64a8f871e65801ce50892e4197