drm: Fix drm_cvt_mode() for interlaced modes.
The calculated vdisplay was half the right value. Signed-off-by: Francisco Jerez <currojerez@riseup.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
b6b7902e54
commit
841b4117b3
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ struct drm_display_mode *drm_cvt_mode(struct drm_device *dev, int hdisplay,
|
||||||
if (margins)
|
if (margins)
|
||||||
vmargin = vdisplay_rnd * CVT_MARGIN_PERCENTAGE / 1000;
|
vmargin = vdisplay_rnd * CVT_MARGIN_PERCENTAGE / 1000;
|
||||||
|
|
||||||
drm_mode->vdisplay = vdisplay_rnd + 2 * vmargin;
|
drm_mode->vdisplay = vdisplay + 2 * vmargin;
|
||||||
|
|
||||||
/* Interlaced */
|
/* Interlaced */
|
||||||
if (interlaced)
|
if (interlaced)
|
||||||
|
|
Loading…
Reference in a new issue