summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sdm/libs/hwc2/hwc_display_primary.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp
index 9653fa82..1a6944b2 100644
--- a/sdm/libs/hwc2/hwc_display_primary.cpp
+++ b/sdm/libs/hwc2/hwc_display_primary.cpp
@@ -445,6 +445,11 @@ HWC2::Error HWCDisplayPrimary::GetReadbackBufferFence(int32_t *release_fence) {
}
HWC2::Error HWCDisplayPrimary::PostCommitLayerStack(int32_t *out_retire_fence) {
+ auto status = HWCDisplay::PostCommitLayerStack(out_retire_fence);
+ if (status != HWC2::Error::None) {
+ return status;
+ }
+
if (pmic_notification_pending_) {
// Wait for current commit to complete
if (*out_retire_fence >= 0) {
@@ -456,7 +461,7 @@ HWC2::Error HWCDisplayPrimary::PostCommitLayerStack(int32_t *out_retire_fence) {
pmic_intf_->Notify(false /* secure_display_start */);
pmic_notification_pending_ = false;
}
- return HWCDisplay::PostCommitLayerStack(out_retire_fence);
+ return HWC2::Error::None;
}
int HWCDisplayPrimary::Perform(uint32_t operation, ...) {