summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharaga Balachandran <quic_tbalacha@quicinc.com>2019-03-01 17:32:30 -0500
committerPeiyong Lin <lpy@google.com>2019-03-01 15:07:31 -0800
commit466d8488a35f0e59640e7cb6fa068c0e749ad867 (patch)
treef7d20ea0243ca4d9e0d3b17cf8104a343ed003f0
parent082d87982c81239efe42b6c81424baf0e0554143 (diff)
downloadandroid_hardware_qcom_sdm845_display-466d8488a35f0e59640e7cb6fa068c0e749ad867.tar.gz
android_hardware_qcom_sdm845_display-466d8488a35f0e59640e7cb6fa068c0e749ad867.tar.bz2
android_hardware_qcom_sdm845_display-466d8488a35f0e59640e7cb6fa068c0e749ad867.zip
hwc: Fix issue with configuring dataspace for solid color layer
Bug: 126713799 Change-Id: I779b921055826124118dc2703fb0253c29d24326
-rw-r--r--sdm/libs/hwc2/hwc_layers.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp
index 73c266ee..c5628f58 100644
--- a/sdm/libs/hwc2/hwc_layers.cpp
+++ b/sdm/libs/hwc2/hwc_layers.cpp
@@ -901,7 +901,8 @@ bool HWCLayer::SupportLocalConversion(ColorPrimaries working_primaries) {
bool HWCLayer::ValidateAndSetCSC() {
if (client_requested_ != HWC2::Composition::Device &&
- client_requested_ != HWC2::Composition::Cursor) {
+ client_requested_ != HWC2::Composition::Cursor &&
+ client_requested_ != HWC2::Composition::SolidColor) {
// Check the layers which are configured to Device
return true;
}