Skip to content

Commit

Permalink
composer: hwc2on1: Resolve fence leak
Browse files Browse the repository at this point in the history
* NVidia's Tegra K1 GL blobs hit this leak, that ultimately
  results in SystemUI soft-resetting every so often when under
  any form of stressful loads.

Change-Id: Iab9e5004ed370d5d76d182cb4ba2804ed0065ddc
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
  • Loading branch information
arttttt authored and neobuddy89 committed Apr 25, 2020
1 parent 21631f2 commit 8194bdd
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -1294,7 +1294,8 @@ Error HWC2On1Adapter::Display::set(hwc_display_contents_1& hwcContents) {
auto& clientTargetLayer = hwcContents.hwLayers[numLayers - 1];
if (clientTargetLayer.compositionType == HWC_FRAMEBUFFER_TARGET) {
clientTargetLayer.handle = mClientTarget.getBuffer();
clientTargetLayer.acquireFenceFd = mClientTarget.getFence();
close(mClientTarget.getFence());
clientTargetLayer.acquireFenceFd = -1;
} else {
ALOGE("[%" PRIu64 "] set: last HWC layer wasn't FRAMEBUFFER_TARGET",
mId);
Expand Down

0 comments on commit 8194bdd

Please sign in to comment.