summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSushil Chauhan <sushilchauhan@codeaurora.org>2018-09-30 23:20:37 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-10-11 21:23:19 -0700
commit3f65abd6db42eee6c94aae33fc7aa508dd02216f (patch)
tree472f26cb0ce95d60874f9c6bb9185bf37c7f538e
parentbdbe838f2355072b8f6c59766bd9feae9464cee6 (diff)
downloadandroid_hardware_qcom_sdm710_display-3f65abd6db42eee6c94aae33fc7aa508dd02216f.tar.gz
android_hardware_qcom_sdm710_display-3f65abd6db42eee6c94aae33fc7aa508dd02216f.tar.bz2
android_hardware_qcom_sdm710_display-3f65abd6db42eee6c94aae33fc7aa508dd02216f.zip
hwc2: Fix PU disable for multiple Concurrent Writeback frames
Fix the disabling of Partial Update feature, in case of Concurrent Writeback for multiple frames. CRs-Fixed: 2318849 Change-Id: Id34eb53b101cf445eacb7d7e9716ae5b8d3a7ac7
-rw-r--r--sdm/libs/hwc2/hwc_display_primary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_display_primary.cpp b/sdm/libs/hwc2/hwc_display_primary.cpp
index 1a6944b2..f5970cd8 100644
--- a/sdm/libs/hwc2/hwc_display_primary.cpp
+++ b/sdm/libs/hwc2/hwc_display_primary.cpp
@@ -256,6 +256,7 @@ HWC2::Error HWCDisplayPrimary::Validate(uint32_t *out_num_types, uint32_t *out_n
// here in a subsequent draw round. Readback is not allowed for any secure use case.
readback_configured_ = !layer_stack_.flags.secure_present;
if (readback_configured_) {
+ DisablePartialUpdateOneFrame();
layer_stack_.output_buffer = &output_buffer_;
layer_stack_.flags.post_processed_output = post_processed_output_;
}
@@ -422,7 +423,6 @@ HWC2::Error HWCDisplayPrimary::SetReadbackBuffer(const native_handle_t *buffer,
readback_configured_ = false;
validated_ = false;
- DisablePartialUpdateOneFrame();
return HWC2::Error::None;
}