diff options
author | Tharaga Balachandran <quic_tbalacha@quicinc.com> | 2019-04-05 16:46:26 -0400 |
---|---|---|
committer | Peiyong Lin <lpy@google.com> | 2019-04-05 16:39:46 -0700 |
commit | 5e157cfbb71dad4fb8eafc68312fbe1b61059339 (patch) | |
tree | 1580b7cd9539a790cddd2bb359d0f23210ac2ef6 | |
parent | 57ae6067fa315aa05fb3abf019a9e6ca8d509d19 (diff) | |
download | android_hardware_qcom_sdm845_display-5e157cfbb71dad4fb8eafc68312fbe1b61059339.tar.gz android_hardware_qcom_sdm845_display-5e157cfbb71dad4fb8eafc68312fbe1b61059339.tar.bz2 android_hardware_qcom_sdm845_display-5e157cfbb71dad4fb8eafc68312fbe1b61059339.zip |
hwc: Fix issue with fallback for solid color layer
Bug: 129797327
Test: manual
Change-Id: I78c029e1b05e78b94fba4ab04e59bb3f39eafb89
-rw-r--r-- | sdm/libs/hwc2/hwc_layers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp index c5628f58..9b08308c 100644 --- a/sdm/libs/hwc2/hwc_layers.cpp +++ b/sdm/libs/hwc2/hwc_layers.cpp @@ -928,7 +928,7 @@ bool HWCLayer::ValidateAndSetCSC() { use_color_metadata = true; } - if (use_color_metadata) { + if (use_color_metadata && client_requested_ != HWC2::Composition::SolidColor) { const private_handle_t *handle = reinterpret_cast<const private_handle_t *>(layer_buffer->buffer_id); if (sdm::SetCSC(handle, &layer_buffer->color_metadata) != kErrorNone) { |