aboutsummaryrefslogtreecommitdiff
path: root/DrmHwcTwo.cpp
AgeCommit message (Collapse)Author
2020-10-22drm_hwcomposer: Set correct source crop for the client layerRoman Stratiienko
Android supports limiting client buffer size using system properties: "ro.surface_flinger.max_graphics_width" "ro.surface_flinger.max_graphics_height" If properties are set, client layer buffer size can no longer be equal to the display size, which causes composition with CLIENT buffer to fail. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2020-10-05drm_hwcomposer: Check parameter range in SetColorMode()Roman Stratiienko
Fix GraphicsComposerHidlTest#SetColorModeBadParameter VTS test. Fixes: 27d2ed670bb34 ("drm_hwcomposer: Fix SetColorMode() and SetColorModeWithIntent()") Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2020-10-03drm_hwcomposer: Fix SetColorMode() and SetColorModeWithIntent()Roman Stratiienko
SetColorMode() should return HWC2_ERROR_UNSUPPORTED [1] SetColorModeWithIntent() should return HWC2_ERROR_UNSUPPORTED [2] Parameters range shoud be also checked to pass VTS. Fixes VtsHalGraphicsComposerV2_2TargetTest: - PerInstance/GraphicsComposerHidlTest#SetColorMode_2_2* ============================================ ================= Results ================== arm64-v8a VtsHalGraphicsComposerV2_2TargetTest: 39s armeabi-v7a VtsHalGraphicsComposerV2_2TargetTest: 36s =============== Summary =============== 2/2 modules completed Total Tests : 78 PASSED : 78 FAILED : 0 ============================================ [1] - https://cs.android.com/android/platform/superproject/+/master:hardware/libhardware/include/hardware/hwcomposer2.h;l=1925;drc=d5f2f67cd2ae63abeccabd0d5339dacd469569cd [2] - https://cs.android.com/android/platform/superproject/+/master:hardware/libhardware/include/hardware/hwcomposer2.h;l=1952;drc=d5f2f67cd2ae63abeccabd0d5339dacd469569cd Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2020-09-28drm_hwcomposer: Fix RegisterCallback() functionRoman Stratiienko
- Fixes segfault during client switch. - Allows to run VTS on Android-11. VTS Results: ============================================ arm64-v8a VtsHalGraphicsComposerV2_1TargetTest: [53 tests / 42808 msec] armeabi-v7a VtsHalGraphicsComposerV2_1TargetTest: [53 tests / 33353 msec] =============== Summary =============== 2/2 modules completed Total Tests : 106 PASSED : 106 FAILED : 0 ============================================ Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
2020-09-11drm_hwcomposer: Fix EDID fetch from DRMAndrii Chepurnyi
EDID fetch procedure consist of two steps: 1) get appropriate blob_id 2) fetch EDID blob using blob_id Those steps should be done sequentially, in other case drivers can update EDID and blob_id won't be actual. Signed-off-by: Andrii Chepurnyi <andrii_chepurnyi@epam.com>
2020-09-08drm_hwcomposer: use CamelCase in source/header files related to classRoman Stratiienko
Main goal is to increase readability of file names. AOSP uses camelcase for files in many projects. Lets do the same for drm_hwcomposer. Keep platform/ directory as is, since class names is different from file names. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com> Change-Id: I7e992357851c2a86711f4da1241c4d507359e56b