disp: msm: sde: add DSPP and DEMURA count to CRTC capability blob
Expose overall DSPP and DEMURA counts on CRTC object to allow DRM clients to make better policy decisions. Change-Id: I59d795cafc829e8b2fe6a3f2fe597c7d5925105d Signed-off-by: Christopher Braga <cbraga@codeaurora.org>
This commit is contained in:

committed by
Gopikrishnaiah Anandan

parent
4c37786c1e
commit
4815caf222
@@ -5660,9 +5660,17 @@ static void sde_crtc_install_properties(struct drm_crtc *crtc,
|
|||||||
sde_crtc_install_dest_scale_properties(sde_crtc, catalog,
|
sde_crtc_install_dest_scale_properties(sde_crtc, catalog,
|
||||||
info);
|
info);
|
||||||
|
|
||||||
if (catalog->dspp_count && catalog->rc_count)
|
if (catalog->dspp_count) {
|
||||||
sde_kms_info_add_keyint(info, "rc_mem_size",
|
sde_kms_info_add_keyint(info, "dspp_count",
|
||||||
|
catalog->dspp_count);
|
||||||
|
|
||||||
|
if (catalog->rc_count)
|
||||||
|
sde_kms_info_add_keyint(info, "rc_mem_size",
|
||||||
catalog->dspp[0].sblk->rc.mem_total_size);
|
catalog->dspp[0].sblk->rc.mem_total_size);
|
||||||
|
if (catalog->demura_count)
|
||||||
|
sde_kms_info_add_keyint(info, "demura_count",
|
||||||
|
catalog->demura_count);
|
||||||
|
}
|
||||||
|
|
||||||
msm_property_install_blob(&sde_crtc->property_info, "capabilities",
|
msm_property_install_blob(&sde_crtc->property_info, "capabilities",
|
||||||
DRM_MODE_PROP_IMMUTABLE, CRTC_PROP_INFO);
|
DRM_MODE_PROP_IMMUTABLE, CRTC_PROP_INFO);
|
||||||
|
Reference in New Issue
Block a user