sdm: Clear VDS output buffer on flush.
CRs-Fixed: 2200594
Change-Id: I99d1ea06cf9ded7755752c7b5fe7e5857e833755
diff --git a/sdm/libs/hwc2/hwc_display_builtin.cpp b/sdm/libs/hwc2/hwc_display_builtin.cpp
index df7271f..16de8d9 100644
--- a/sdm/libs/hwc2/hwc_display_builtin.cpp
+++ b/sdm/libs/hwc2/hwc_display_builtin.cpp
@@ -243,7 +243,7 @@
HWC2::Error HWCDisplayBuiltIn::Present(int32_t *out_retire_fence) {
auto status = HWC2::Error::None;
if (display_paused_) {
- DisplayError error = display_intf_->Flush();
+ DisplayError error = display_intf_->Flush(&layer_stack_);
validated_ = false;
if (error != kErrorNone) {
DLOGE("Flush failed. Error = %d", error);
@@ -527,7 +527,7 @@
if (active_secure_sessions_[kSecureDisplay] != secure_sessions[kSecureDisplay]) {
SecureEvent secure_event =
secure_sessions.test(kSecureDisplay) ? kSecureDisplayStart : kSecureDisplayEnd;
- DisplayError err = display_intf_->HandleSecureEvent(secure_event);
+ DisplayError err = display_intf_->HandleSecureEvent(secure_event, &layer_stack_);
if (err != kErrorNone) {
DLOGE("Set secure event failed");
return err;