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
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
58d0e0f083
commit
da3000d1b8
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user