1
0
Fork 0

drm_hwcomposer: Return kUnsupported for setLayerLuts

Even though drmhwc does not support per-layer LUTs, the vts test
GraphicsComposerAidlCommandV4Test.SetUnsupportedLayerLuts issues the
setLayerLuts command when the display is in headless mode with
vkms/cuttlefish. Since drmhwc ignores the command, the test fails.

Instead of ignoring the command, return a kUnsupported error which
allows the test to pass.

Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
This commit is contained in:
Deborah Brouwer 2025-09-10 12:46:59 -07:00
parent 670385a79f
commit c567d34443

View file

@ -621,6 +621,13 @@ void ComposerClient::DispatchLayerCommand(int64_t display_handle,
return;
}
if (command.luts) {
ALOGI("setLayerLuts unsupported: display=%lld layer=%lld",
(long long)display_handle, (long long)command.layer);
cmd_result_writer_->AddError(hwc3::Error::kUnsupported);
return;
}
// If the requested composition type is not supported, the HWC should return
// an error and not process any further commands.
if (!IsSupportedCompositionType(command.composition)) {