diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2018-10-17 03:05:05 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-10-17 03:05:05 -0700 |
commit | 1453c8aab208bdacbe1f866cfe28ead37e7837ae (patch) | |
tree | ab780ab4107be36f4cc37a87cd48f4900b9ea7d1 | |
parent | 468c1e1ba74179022a55d1e4c79e511693ca276e (diff) | |
parent | 3f65abd6db42eee6c94aae33fc7aa508dd02216f (diff) | |
download | android_hardware_qcom_sdm710_display-1453c8aab208bdacbe1f866cfe28ead37e7837ae.tar.gz android_hardware_qcom_sdm710_display-1453c8aab208bdacbe1f866cfe28ead37e7837ae.tar.bz2 android_hardware_qcom_sdm710_display-1453c8aab208bdacbe1f866cfe28ead37e7837ae.zip |
Merge "hwc2: Fix PU disable for multiple Concurrent Writeback frames"
-rw-r--r-- | sdm/libs/hwc2/hwc_display_primary.cpp | 2 |
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; } |