summaryrefslogtreecommitdiff
path: root/hwc3/impl
AgeCommit message (Collapse)Author
2023-03-02hwc3: add support for refresh rate indicator callbackWiwit Rifa'i
This will add support in HWC to expose the refresh rate in panel to SF using HWC3 callback API so that SF can update the refresh rate overlay indicator to the actual refresh rate in the panel. HWC will monitor the panel refresh rate based on some sysfs nodes. Bug: 267825022 Test: enable refresh rate indicator, wait for idle, AOD Change-Id: Ibc80d66eae6b21c3cf84d35fa819e97ccc509ede
2023-02-15Merge "Update setHdrConversionStrategy to return the preferredHdrOutput type"Kriti Dang
2023-02-13[HWC3] native implementation forramindani
setRefreshRateChangedCallbackDebugEnabled Add onRefreshRateChangedDebug Test: Device boots BUG: 202734676 Change-Id: I079e13fcf2bd0872c8f29468fc2ef311b9774d10
2023-02-09Update setHdrConversionStrategy to return the preferredHdrOutput typeKriti Dang
Bug: 268336382 Test: m Change-Id: I790733b9fcdb5e4c4724a512528023a3daa95a53
2023-01-17Merge "Add HDR output control APIs implementation in hwc3"Kriti Dang
2023-01-17Merge "hwc3: Primary displays supports MULTI_THREADED_PRESENT"Joen Chen
2023-01-12Add HDR output control APIs implementation in hwc3Kriti Dang
Bug: 251168514 Test: m Change-Id: I95710e1a0a1caed2974520ae2b61eafafa2d3cf2
2023-01-06Support for querying supported formats and dataspacesKaruna Ramkumar
Bug: 245570131 Change-Id: Ie906f6c27a7dd88f962db7a992527b661919b40a
2022-12-01hwc3: Primary displays supports MULTI_THREADED_PRESENTjoenchen
After primary displays supports this capability, SurfaceFlinger can run executeCommands(presentDisplay) for this display concurrently with other displays with the same capability. Bug: 247074458 Test: switch applications Change-Id: I55c4fe2d38f412f0e98b46502a99c90943cefbcc
2022-10-03hwc3: Add getOverlaySupport()Sally Qi
Bug: 242588489 Test: atest VtsHalGraphicsComposer3_TargetTest Change-Id: I505a76213549c3ff613c93c707cd01777801455d
2022-04-11Merge changes from topic "presubmit-am-d0d4d02a70d04aa89422da65615208d1"Midas Chien
* changes: [automerge] hwc3: implement VsyncIdle callback for HWC3 2p: d767263ad9 2p: db34423762 [automerge] hwc3: implement VsyncIdle callback for HWC3 2p: d767263ad9 hwc3: implement VsyncIdle callback for HWC3
2022-04-08HWC supports boot config APIjoenchen
Test: to change resolution and check logcat log Bug: 223463247 Change-Id: I96953ec23ddf85974c82191914e6a1e4a0b9c69a
2022-04-08hwc3: implement VsyncIdle callback for HWC3Yichi Chen
The patch creates the new method to register the HWC3 callback function. The corresponding VsyncIdle callback function will be called when idle TE vrefresh is changed in the idle. Bug: 194068871 Test: switch refresh rates, enable panel idle at 60hz Change-Id: I4876fdfd341366ca2012a3ce6704a2c8de5866d2
2022-03-01Merge "hwc3: return OK for getDisplayPhysicalOrientation" into tm-devTreeHugger Robot
2022-03-01hwc3: return OK for getDisplayPhysicalOrientationLong Ling
Bug: 221885596 Test: atest PerInstance/GraphicsComposerAidlTest#GetDisplayPhysicalOrientation/0_android_hardware_graphics_composer3_IComposer_default Change-Id: I91d4a42f92e9d41573a1ad2b75c7be28c170141c
2022-03-01Merge "hwc3: support SDR dimming in linear or gamma space" into tm-devLong Ling
2022-02-25hwc3: support SDR dimming in linear or gamma spaceLong Ling
Move SDR dimming to displaycolor. Report dimming stage to SF. Bug: 218954037 Change-Id: Ieacbd427e0d5894c6b0754574af08631d5859f92
2022-02-25hwc3: add support of blocking region for RCD layersYichi Chen
Blocking region for RCD is supported to save the memory bandwidth. The patch creates basic support to store the value in exynos_win_config_data. Bug: 214560831 Test: VtsHalGraphicsComposer3_TargetTest Change-Id: I5b350ec4736f60b49fed5db3756169a156bb42dd
2022-02-23Composer reports dimming ratio for client composition instead of nitsAlec Mouri
Hal interface is changing to remove nits from the composer interface, and instead operate on a ratio of the current brightness. Bug: 217961164 Test: builds, boots Change-Id: Ia27a6038ba98d51bbdf5127ee7e8f9ef99e8c119 Merged-In: Ia27a6038ba98d51bbdf5127ee7e8f9ef99e8c119
2022-02-18hwc3: update count of PerFrameMetadataKeysLong Ling
count should be index + 1 Bug: 216393140 Test: check hdr10+ playback Change-Id: Iecd6d85b754139145588f8dcdebd44a32ca528ea
2022-02-17Revert "Revert "libhwc2.1: support setIdleTimerEnabled""Midas Chien
This reverts commit 13c602ef2fa6ec36e9ec02633ec7727fd4427d3c. Reason for revert: avc denied is addressed in another patch Bug: 219857957 Bug: 198808492 Test: composer access panel_idle withou avc denied Change-Id: If1753cde988d8e2c755168bbc174da9faf138b91
2022-02-16Merge "hwc3: simplify dumpDebugInfo to avoid duplicated dump calls"TreeHugger Robot
2022-02-17hwc3: simplify dumpDebugInfo to avoid duplicated dump callsYichi Chen
In HWC3, AIDL implementation can directly access string output. Hence, it is not necessary for dumpDebugInfo to operate char[] with buffer size reallocated as before. In addition, the patch also corrects a strange character at the end of the output string due to wrong length in string copy. Test: dumpsys SurfaceFlinger Bug: 198808492 Change-Id: I05474d7d49986e46dfbf6038d28ae8e5530ea067
2022-02-16Merge "Revert "libhwc2.1: support setIdleTimerEnabled""Shubham Dubey
2022-02-16Revert "libhwc2.1: support setIdleTimerEnabled"Shubham Dubey
This reverts commit 91700d7c6e6cea728e3d8525745ddbf8a0517c98. Reason for revert: Introduced untracked linux denials BUG: 219857957 Change-Id: I924352333ff3c36e971c11a8f48831ab5cac75b3
2022-02-16Merge "libhwc2.1: support setIdleTimerEnabled"Midas Chien
2022-02-15libhwc2.1: support setIdleTimerEnabledMidas Chien
Implement setIdleTimerEnabled to control kernel idle timer via HWC API. Bug: 198808492 Test: VTS (--gtest_filter=*SetIdleTimerEnabled_*) Test: check idle_delay_ms from sysnode match what HWC set Change-Id: Ia222101a4f0e440db3daf03cd798bf2e748259a5
2022-02-10Change meaning of white point nits to mean a dimming ratioAlec Mouri
SF now computes the desired dimming ratio itself, and sends it to HWC. Bug: 217961164 Test: builds Change-Id: Ifeb6f0e0a28404ad61b81d9e86375530997c5e54
2022-02-08hwc: correct the functionality of getDisplayCapabilitiesYichi Chen
Since BRIGHTNESS and DOZE have been included in getDisplayCapabilities, we don't need to call the original support function individually. Bug: 216118058 Test: atest VtsHalGraphicsComposer3_TargetTest Change-Id: I85932e9d050813c9d2b89bef5783900fbd4c88f9
2022-02-08hwc: declare the support of DISPLAY_DECORATION in DisplayCapabilityYichi Chen
The display reports the support DISPLAY_DECORATION when rcdConfigs are created during initDisplayInterface. Bug: 193171134 Test: enable RCD layer from DisplayCapability Change-Id: I53dbbc21e6c3fc02e68f6d7cf37cccf97ddf7617
2022-01-26Merge "hwc3: add setIdleTimerEnabled and vsyncIdle callback"TreeHugger Robot
2022-01-25hwc3: get display mount orientationLong Ling
Bug: 214461751 Change-Id: I32ae0d09d3555be28d152b02719e76f1bcf42350
2022-01-20hwc3: add setIdleTimerEnabled and vsyncIdle callbackMidas Chien
Bug: 194068871 Bug: 198808492 Test: build, vts Change-Id: Ia55c4069246d3aac08b8f0ec5653bbdc684db42c
2022-01-19Merge "hwc3: add getDisplayPhysicalOrientation"Ady Abraham
2022-01-19hwc3: add getDisplayPhysicalOrientationAdy Abraham
Test: VTS Bug: 213237830 Change-Id: I5d5e874841faee662d0c50537b6b765e5b600e01
2022-01-13Add boot time display mode APIs implementation in hwc3Kriti Dang
Bug: 203520442 Test: m Change-Id: I8ddf502f4b506040f9657eb362fe53cbbbedac66
2022-01-12Merge "hwc3: support SDR and HDR blending"Long Ling
2022-01-11hwc3: support SDR and HDR blendingLong Ling
Add support for setLayerWhitePointNits, setClientTargetWhitePointNits and setDisplayBrightness commands. Bug: 196171661 Change-Id: I5b2c5510ae758805396e678f1e2d5c4ea1e716b5
2022-01-11hwc3: color is passed as floatsAdy Abraham
Color is passed as floats in the range of [0.0 - 1.0] to match the upper part of the stack. Bug: 207139550 Test: VTS Change-Id: If15c30f17760f2da2365e06d1572bfd27a716609
2022-01-10hwc3: remove floatColor from LayerCommandAdy Abraham
Currently not used. Bug: 207139550 Test: VTS Change-Id: I480081e246335a7909aa34a1350d2a6c8e7ee58a
2022-01-04hwc3: create the interface for expectedPresentTimeYichi Chen
The expectedPresentTime is an optional value specified in validateDisplay and presentOrValidateDisplay. The patch creates the proper command dispatchers to read the information only in the two functions. A warning message will show if the expectedPresentTime is provided multiple times within one frame update. Bug: 198186194 Test: VtsHalGraphicsComposer3_TargetTest Change-Id: Ifff31202bef3297c1ddc28189ed301a7f6175695
2021-12-23Merge "Remove GenericMetadata from composer3"Ady Abraham
2021-12-22Merge "hwc3: DisplayCommand.colorTransform is just a matrix"Ady Abraham
2021-12-21Remove GenericMetadata from composer3Ady Abraham
There are no current users for GenericMetadata, so removing from composer 3. Bug: 209691612 Test: VTS Change-Id: Ie2d1787e0bb6c9bf08e55254f5697a7ec6112d2c
2021-12-21hwc3: DisplayCommand.colorTransform is just a matrixAdy Abraham
Remove the hint from DisplayCommand.colorTransform as currently we only use ColorTransform::IDENTITY and ColorTransform::ARBITRARY_MATRIX, which both can be expressed using a matrix. Bug: 208879711 Test: VTS Change-Id: If35d0f1dcc17983d75adb95d63b423799cce064a
2021-12-20hwc3: do acceptDisplayChanges if display is validatedMidas Chien
When presentDisplay is called after validateDisplay without call acceptDisplayChanges, call acceptDisplayChanges in presentDisplay. Bug: 207005096 Test: VtsHalGraphicsComposer3_TargetTest Change-Id: I98270aecd82a4d5cdbf2e514567dca5ac3b953e9
2021-12-13Merge "hwc3: LayerCommand moved to DisplayCommand"Ady Abraham
2021-12-08Merge "hwc3: ignore setPowerMode with ON_SUSPEND"Long Ling
2021-12-08hwc3: ignore setPowerMode with ON_SUSPENDLong Ling
Pixel HWC does not handle this mode and return UNSUPPORTED. Bug: 207141637 Change-Id: I5709d3d47148c3a59f38b82a8cb9d459eed43984
2021-12-07hwc3: LayerCommand moved to DisplayCommandAdy Abraham
Bug: 206117357 Test: VTS Change-Id: Iaecc57aa03c3f5c37ff02b3ba1aedb9ccf169c9a