aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/sti/sti_compositor.c
diff options
context:
space:
mode:
authorArchit Taneja <architt@codeaurora.org>2016-12-06 12:15:54 +0530
committerRob Clark <robdclark@gmail.com>2017-02-06 11:28:43 -0500
commite5366ffe50cc1fff906d7bb45a670861a2174395 (patch)
treebf681b93f089213be5acabdab960f07e047cea70 /drivers/gpu/drm/sti/sti_compositor.c
parent710a651fdd6958c8530c72c62970b785179fce9f (diff)
drm/msm/mdp5: Create only as many CRTCs as we need
We currently create CRTCs equaling to the # of Layer Mixer blocks we have on the MDP5 HW. This number is generally more than the # of encoders (INTFs) we have in the MDSS HW. The number of encoders connected to displays on the platform (as described by DT) would be even lesser. Create only N drm_crtcs, where N is the number of drm_encoders successfully registered. To do this, we call modeset_init_intf() before we init the drm_crtcs and drm_planes. Because of this change, setting encoder->possible_crtcs needs to be moved from construct_encoder() to a later point when we know how many CRTCs we have. Signed-off-by: Archit Taneja <architt@codeaurora.org> Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/sti/sti_compositor.c')
0 files changed, 0 insertions, 0 deletions