drm_hwcomposer: Return kUnsupported for ReadbackBuffer
For writeback connectors, no ReadbackBufferFence is returned. Instead of returning kBadParameter, return kUnsupported so that the GraphicsCompositionTest.GetReadbackBufferFenceInactive test will pass. Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
This commit is contained in:
parent
acb3e3d8f7
commit
3972d6d3cd
1 changed files with 2 additions and 1 deletions
|
|
@ -1164,9 +1164,10 @@ ndk::ScopedAStatus ComposerClient::getReadbackBufferFence(
|
|||
->GetWritebackBufferFence();
|
||||
display->SetWritebackEnabled(false);
|
||||
display->GetWritebackLayer()->ClearSlots();
|
||||
|
||||
if (!fence) {
|
||||
ALOGE("ComposerClient: Failed to get readback buffer fence");
|
||||
return ToBinderStatus(hwc3::Error::kBadParameter);
|
||||
return ToBinderStatus(hwc3::Error::kUnsupported);
|
||||
}
|
||||
|
||||
if (fence && *fence >= 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue