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:
parent
670385a79f
commit
c567d34443
1 changed files with 7 additions and 0 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue