From c567d34443c5e58504e4f6748b2a8d51fe1e7caa Mon Sep 17 00:00:00 2001 From: Deborah Brouwer Date: Wed, 10 Sep 2025 12:46:59 -0700 Subject: [PATCH] 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 --- hwc3/ComposerClient.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp index bcd32e4..2b4abc5 100644 --- a/hwc3/ComposerClient.cpp +++ b/hwc3/ComposerClient.cpp @@ -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)) {