diff options
author | Baldev Sahu <bsahu@codeaurora.org> | 2020-07-02 18:32:30 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2020-07-10 00:35:14 -0700 |
commit | 20d2679d658ccebb8362c3c78088d898447bb63e (patch) | |
tree | 86cd2358d405d542acb1fa750169d19056ed3eed | |
parent | 97cd61330667628b1365cc4b2e9285832c18a623 (diff) |
hwc: Allow null fence on client taret buffer.
Client keeps track of GPU composition requests and sends -1 fd
if there is no need to re draw.
CRs-Fixed: 2695433
Change-Id: I310d848a32afecdaf52aa23c513565920fe21de2
-rw-r--r-- | sdm/libs/hwc2/hwc_display.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sdm/libs/hwc2/hwc_display.cpp b/sdm/libs/hwc2/hwc_display.cpp index 3eb900d6..a4b83441 100644 --- a/sdm/libs/hwc2/hwc_display.cpp +++ b/sdm/libs/hwc2/hwc_display.cpp @@ -1165,8 +1165,7 @@ HWC2::Error HWCDisplay::SetClientTarget(buffer_handle_t target, int32_t acquire_ } if (acquire_fence == 0) { - DLOGW("acquire_fence is zero"); - return HWC2::Error::BadParameter; + DLOGV_IF(kTagClient, "Re-using cached buffer"); } Layer *sdm_layer = client_target_->GetSDMLayer(); |