drm_hwcomposer: Remove CTM property check for SKIP_CLIENT_COLOR_TRANSFORM
CTM property does not support 4x4 matrices. Allow client composition in
these cases.
Ensure that when all layers are client composited, we clear DRM CTM.
Change-Id: Id922afff7c2b7a4786ee36c1094892e0ef27fd57
Signed-off-by: Sasha McIntosh <sashamcintosh@google.com>
diff --git a/hwc2_device/HwcDisplay.h b/hwc2_device/HwcDisplay.h
index d0b4a47..58ab6f6 100644
--- a/hwc2_device/HwcDisplay.h
+++ b/hwc2_device/HwcDisplay.h
@@ -286,7 +286,9 @@
uint16_t virtual_disp_height_{};
int32_t color_mode_{};
std::shared_ptr<drm_color_ctm> color_matrix_;
+ std::shared_ptr<drm_color_ctm> identity_color_matrix_;
android_color_transform_t color_transform_hint_{};
+ bool ctm_has_offset_ = false;
int32_t content_type_{};
Colorspace colorspace_{};
std::shared_ptr<hdr_output_metadata> hdr_metadata_;