From da3000d1b828c0df3b18ea79447b52d6e71eb423 Mon Sep 17 00:00:00 2001 From: Rajavenu Kyatham Date: Wed, 14 Feb 2018 21:53:41 +0530 Subject: hwc2: avoid flush on command mode with secure display - set validate if layer stack is empty, to support flush. Change-Id: I937b6346617bb25a49aa93b10b85da66ec6753d4 CRs-fixed: 2185452 --- sdm/libs/hwc2/hwc_display_primary.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sdm/libs/hwc2/hwc_display_primary.cpp') diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp index 1f2fdf64..be05e0a3 100644 --- a/sdm/libs/hwc2/hwc_display_primary.cpp +++ b/sdm/libs/hwc2/hwc_display_primary.cpp @@ -1,5 +1,5 @@ /* -* Copyright (c) 2014 - 2017, The Linux Foundation. All rights reserved. +* Copyright (c) 2014 - 2018, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -210,7 +210,8 @@ HWC2::Error HWCDisplayPrimary::Validate(uint32_t *out_num_types, uint32_t *out_n // Avoid flush for Command mode panel. DisplayConfigFixedInfo display_config; display_intf_->GetConfig(&display_config); - flush_ = !display_config.is_cmdmode; + flush_ = !(display_config.is_cmdmode && secure_display_active_); + validated_ = true; return status; } -- cgit v1.2.3