ANDROID: Update drm hwcomposer to composer3 V4
... to fix build incompatibilities due to framework compatibility
matrix requirements now requiring V4.
Bug: b/348466630
Test: cvd create
Test: cvd create --hwcomposer=drm_hwcomposer
Ignore-AOSP-First: uprev'ing based on internal-first hal changes
Change-Id: Ief7c19248fdd739e17c54335a3c234aa9dd3677e
diff --git a/hwc3/ComposerClient.cpp b/hwc3/ComposerClient.cpp
index f353abb..0736662 100644
--- a/hwc3/ComposerClient.cpp
+++ b/hwc3/ComposerClient.cpp
@@ -332,6 +332,9 @@
if (command.brightness) {
ExecuteSetLayerBrightness(display_id, layer_wrapper, *command.brightness);
}
+ if (command.luts) {
+ ExecuteLayerCommandSetLayerLuts(display_id, layer_wrapper, *command.luts);
+ }
// Some unsupported functionality returns kUnsupported, and others
// are just a no-op.
@@ -1132,6 +1135,12 @@
}
}
+void ComposerClient::ExecuteLayerCommandSetLayerLuts(
+ int64_t /*display_id*/, HwcLayerWrapper& /*layer*/,
+ const std::vector<std::optional<Lut>>& /*luts*/) {
+ cmd_result_writer_->AddError(hwc3::Error::kUnsupported);
+}
+
void ComposerClient::ExecuteSetDisplayBrightness(
uint64_t display_id, const DisplayBrightness& command) {
auto* display = GetDisplay(display_id);