From 42ebc808992da2ffbf3c9b0ae56d14a1e1afc3bc Mon Sep 17 00:00:00 2001 From: Pullakavi Srinivas Date: Mon, 8 Oct 2018 14:52:15 +0530 Subject: hwc2: Reset validate on surface damage region update. Video mode panels make use of dirty regions to recompute aggregated fb roi that needs to be cropped from cached buffer. Reset validate to update appropriate rect. CRs-fixed: 2326636 Change-Id: I9e6519ca833f84c36d9fa6fb8270ccf3d1fcf83d --- sdm/libs/hwc2/hwc_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdm') diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp index 5c3841f0..2850e9d4 100644 --- a/sdm/libs/hwc2/hwc_display.cpp +++ b/sdm/libs/hwc2/hwc_display.cpp @@ -377,7 +377,7 @@ int HWCDisplay::Init() { DisplayConfigFixedInfo fixed_info = {}; display_intf_->GetConfig(&fixed_info); - partial_update_enabled_ = fixed_info.partial_update; + partial_update_enabled_ = fixed_info.partial_update || (!fixed_info.is_cmdmode); client_target_->SetPartialUpdate(partial_update_enabled_); DLOGI("Display created with id: %d", id_); -- cgit v1.2.3