drm_hwcomposer: Add property for config groups
Android framework will change between configs in the same config group
dynamically, to support the Multiple refresh rate [1] feature. If the
display driver does not support changing modes seamlessly, there will be
visible artifacts (blank screen) when changing refresh rates.
Add a property to disable config grouping on devices that do not support
seamless mode changes. Set the default value to enable config grouping.
[1] https://source.android.com/docs/core/graphics/multiple-refresh-rate
Change-Id: Iec5927ea3af063669f6f7b7aa430e541c1c35428
Signed-off-by: Drew Davenport <ddavenport@google.com>
diff --git a/utils/properties.cpp b/utils/properties.cpp
index 4547e74..a855c94 100644
--- a/utils/properties.cpp
+++ b/utils/properties.cpp
@@ -25,3 +25,7 @@
return (property_get_bool("ro.vendor.hwc.drm.present_fence_not_reliable",
0) != 0);
}
+
+auto Properties::UseConfigGroups() -> bool {
+ return (property_get_bool("ro.vendor.hwc.drm.use_config_groups", 1) != 0);
+}