1
0
Fork 0
android_external_drm_hwcomp.../utils
Gil Dekel 3b2050b7f2 drm_hwcomposer: Re-enable MRR on AL devices
Configuration groups for the Multiple Refresh Rate (MRR) feature support
is currently disabled in DRM HWComposer. This is because it is
insufficient to group modes solely based on their active region size.

The primary reasons for this insufficiency are:
1. drm-hwc clients may assume they can seamlessly switch between
   configurations within the same group to support variable refresh
   rates.
2. Not all System-on-a-Chip (SoC) architectures support seamless mode
   transitions.
3. For SoCs that do support seamless switching, transitions often depend
   on other hardware-specific properties like matching blanking periods.
4. A fallback to a non-seamless (blocking) modeset is unacceptable for
   internal displays if a seamless transition fails, as this causes
   flickering. The current framework does not handle such failures
   gracefully.

To Resolve these challenges and re-enable seamless Multiple Refresh-Rate
transitions on internal panels, we add logic to validate all configs
against the preferred initial active config. This validation preforms a
seamless modeset test on each available config against the config that
was set during the display initialization. Configs that fail the
screening are assigned new group IDs.

Caveats:
1. Currently, this is only implemented for internal panels. External
   display seamless transition between variable refresh rates is not
   support. However this work can be extended to support seamless
   transitions on external displays as well.
2. Grouping is only preformed for the preffered/active config at the
   time of display init, and is valid only for the duration of the
   current full modeset commit. No other groups are not created (since
   they cannot be validated), and any new full commits will not honor
   the guarantee provided by the check. This work can be extended to
   refresh and validate all configs within the same group ID of any
   incoming full modeset commit.

Change-Id: Ie2661e74bd3ff704b40c8c7ef50c56e604e5e8df
Signed-off-by: Gil Dekel <gildekel@google.com>
2025-07-29 16:14:12 -04:00
..
EdidWrapper.h drm_hwcomposer: Remove SetColorMode HWC2 API 2025-05-22 13:35:33 -04:00
fd.cpp drm_hwcomposer: refactor drmAtomicStateManager 2025-07-15 21:50:01 +00:00
fd.h drm_hwcomposer: Introduce SharedFd, use standard c++ RAII for UniqueFd 2023-01-16 20:13:58 +02:00
LibdisplayEdidWrapper.cpp drm_hwcomposer: Remove SetColorMode HWC2 API 2025-05-22 13:35:33 -04:00
log.h drm_hwcomposer: Use pragma once instead of include guards 2022-12-10 20:37:34 +02:00
properties.cpp drm_hwcomposer: Re-enable MRR on AL devices 2025-07-29 16:14:12 -04:00
properties.h drm_hwcomposer: Re-enable MRR on AL devices 2025-07-29 16:14:12 -04:00
UEvent.h drm_hwcomposer: Pass length to std::string 2025-04-10 11:25:29 -04:00