diff options
author | Hai Li <hali@codeaurora.org> | 2015-06-24 19:13:40 -0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-08-15 18:27:14 -0400 |
commit | 9b7a9fc29a48026d797cbf237121850c1c241df4 (patch) | |
tree | 72918a017f2186b142ec861c418370d55426c333 /drivers/gpu/drm/msm/msm_drv.c | |
parent | 5cf3a4553fc8395c4ad38077f8cee6c91f832393 (diff) | |
download | linux-9b7a9fc29a48026d797cbf237121850c1c241df4.tar.gz linux-9b7a9fc29a48026d797cbf237121850c1c241df4.tar.bz2 linux-9b7a9fc29a48026d797cbf237121850c1c241df4.zip |
drm/msm: Set different display size limitation on each target
The maximum output width of one pipeline depends on the LayerMixer's
capability. It may be different on each target. Also, MDP5 doesn't
have vertical limitation in one frame, as long as the pixel clock
can be supported.
This change obtains the maximum LM resolution from configuration
table and treat it as the whole pipe's limitation for MDP5. The size
limit on MDP4 is not changed.
Signed-off-by: Hai Li <hali@codeaurora.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_drv.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index d3467b115e04..39ce1920f5f5 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -331,10 +331,6 @@ static int msm_load(struct drm_device *dev, unsigned long flags) } } - dev->mode_config.min_width = 0; - dev->mode_config.min_height = 0; - dev->mode_config.max_width = 2048; - dev->mode_config.max_height = 2048; dev->mode_config.funcs = &mode_config_funcs; ret = drm_vblank_init(dev, priv->num_crtcs); |