Skip to content

Commit 3003fe9

Browse files
author
Sally Qi
committed
[Lut] Add warning logs for luts
Bug: 380894872 Test: builds Flag: EXEMPT just some warning logs Change-Id: I34fe71f305ee2d17802b2d3a5870e2273432acfb
1 parent a29a2d1 commit 3003fe9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • services/surfaceflinger/DisplayHardware

services/surfaceflinger/DisplayHardware/HWC2.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,15 @@ Error Display::getRequestedLuts(LayerLuts* outLuts,
640640
lutFileDescriptorMapper.emplace_or_replace(layer.get(),
641641
ndk::ScopedFileDescriptor(
642642
layerLut.luts.pfd.release()));
643+
} else {
644+
ALOGE("getRequestedLuts: invalid luts on layer %" PRIu64 " found"
645+
" on display %" PRIu64 ". pfd.get()=%d, offsets.has_value()=%d",
646+
layerIds[i], mId, layerLut.luts.pfd.get(), layerLut.luts.offsets.has_value());
643647
}
648+
} else {
649+
ALOGE("getRequestedLuts: invalid layer %" PRIu64 " found"
650+
" on display %" PRIu64,
651+
layerIds[i], mId);
644652
}
645653
}
646654

0 commit comments

Comments
 (0)