sdm: Update the DRM properties only when required
Define updates mask in HW layers, to avoid updating configuration
related DRM properties, when it is not required. This reduces CPU
instructions in the COMMIT Phase of all Skip Validate draw cycles.
CRs-Fixed: 2395259
Change-Id: If4953b8d542a0b19cac6cb46dd75a26d3223d222
diff --git a/sdm/libs/hwc2/hwc_display_builtin.cpp b/sdm/libs/hwc2/hwc_display_builtin.cpp
index 118d3cd..4007754 100644
--- a/sdm/libs/hwc2/hwc_display_builtin.cpp
+++ b/sdm/libs/hwc2/hwc_display_builtin.cpp
@@ -809,6 +809,7 @@
return HWC2::Error::Unsupported;
}
+ validated_ = false;
return HWC2::Error::None;
}