composer: Initialize the cached active config index

Initialize the cached active config index by GetActiveConfig api.
This is required because DAL can initialize the active config to the
preferred config, flagged with DRM_MODE_TYPE_PREFERRED by DRM driver.

CRs-Fixed: 2683410
Change-Id: I48110dfcee2c281825a20f87d10274450779c7bf
diff --git a/composer/hwc_display.cpp b/composer/hwc_display.cpp
index 628c0f0..ec8b151 100644
--- a/composer/hwc_display.cpp
+++ b/composer/hwc_display.cpp
@@ -569,7 +569,9 @@
   }
 
   if (num_configs_ != 0) {
-    SetActiveConfigIndex(hwc_config_map_.at(0));
+    hwc2_config_t active_config = hwc_config_map_.at(0);
+    GetActiveConfig(&active_config);
+    SetActiveConfigIndex(active_config);
   }
 
   // Update num config count.