Handle composition v2 for validate method

We need to add suppor for composition v2 to keep consistent with
emulator host side.

Test: manuually
Change-Id: I5d3c922f86f1de27487d552eb62ce8762d6fafa8
diff --git a/system/hwc2/EmuHWC2.cpp b/system/hwc2/EmuHWC2.cpp
index 8925a00..31e0789 100644
--- a/system/hwc2/EmuHWC2.cpp
+++ b/system/hwc2/EmuHWC2.cpp
@@ -995,9 +995,10 @@
         DEFINE_AND_VALIDATE_HOST_CONNECTION
         hostCon->lock();
         bool hostCompositionV1 = rcEnc->hasHostCompositionV1();
+        bool hostCompositionV2 = rcEnc->hasHostCompositionV2();
         hostCon->unlock();
 
-        if (hostCompositionV1) {
+        if (hostCompositionV1 || hostCompositionV2) {
             // Support Device and SolidColor, otherwise, fallback all layers
             // to Client
             bool fallBack = false;