sdm: Implement Display Config 1_11 Qsync API's.

--Do not set min fps if qsync is active.
--Qsync and active config changes can't be entertained in
  same commit. Reject any such request.

CRs-Fixed: 2529223
Change-Id: Ibd67780aab6d1f0f2e857b7d1fe110a216766baa
diff --git a/composer/hwc_display_builtin.cpp b/composer/hwc_display_builtin.cpp
index 63bd2d8..e6f33ba 100644
--- a/composer/hwc_display_builtin.cpp
+++ b/composer/hwc_display_builtin.cpp
@@ -859,6 +859,13 @@
 }
 
 HWC2::Error HWCDisplayBuiltIn::SetQSyncMode(QSyncMode qsync_mode) {
+  // Client needs to ensure that config change and qsync mode change
+  // are not triggered in the same drawcycle.
+  if (pending_config_) {
+    DLOGE("Failed to set qsync mode. Pending active config transition");
+    return HWC2::Error::Unsupported;
+  }
+
   auto err = display_intf_->SetQSyncMode(qsync_mode);
   if (err != kErrorNone) {
     return HWC2::Error::Unsupported;