When YUV420 is used, we need to check that the deep color mode actually
supports the bit depth required. Currently, the code checks the RGB bit
depth.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
(cherry picked from commit
5ac33861906cb7be660cc5c0a0f494194a81275a)
/* FIXME: we should get the connector colorspace some other way */
if (vic == 97 &&
(di->color_formats & DRM_COLOR_FORMAT_YCRCB420) &&
- (di->bpc >= 10))
+ (di->hdmi.y420_dc_modes & DRM_EDID_YCBCR420_DC_30))
dcss_crtc->opipe_pix_format = DRM_FORMAT_P010;
else
dcss_crtc->opipe_pix_format = DRM_FORMAT_ARGB8888;