From 9ee7ffac69b368c7bac45f8a7db9db4ec7a5c722 Mon Sep 17 00:00:00 2001 From: Valerie Hau Date: Tue, 19 Mar 2019 10:06:31 -0700 Subject: Set validated_ to true if layer stack is empty Bug: 118713045 Test: build, boot, VtsHalGraphicsComposerV2_1TargetTest Change-Id: I38a91f45b96bcede7c2b1baec7cca6cc1fb829f2 --- msm8998/sdm/libs/hwc2/hwc_display_primary.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'msm8998') diff --git a/msm8998/sdm/libs/hwc2/hwc_display_primary.cpp b/msm8998/sdm/libs/hwc2/hwc_display_primary.cpp index be83982e..2c242358 100644 --- a/msm8998/sdm/libs/hwc2/hwc_display_primary.cpp +++ b/msm8998/sdm/libs/hwc2/hwc_display_primary.cpp @@ -202,6 +202,7 @@ HWC2::Error HWCDisplayPrimary::Validate(uint32_t *out_num_types, uint32_t *out_n if (layer_set_.empty()) { flush_ = true; + validated_ = true; return status; } -- cgit v1.2.3