aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-01-23 19:13:23 -0500
committerBen Skeggs <bskeggs@redhat.com>2014-01-29 17:18:26 -0500
commiteb2e9686d6bc94559dc7f25ed1e67ebbf0a9a41b (patch)
tree3597e659b268a9ec682a37a6d8c9ddddc13fec17 /drivers
parent1139ffb96b3f4e8be9006552d2dd4d302d62c2ee (diff)
drm/nv50: fill in crtc mode struct members from crtc_mode_fixup
The DRM uses the adjusted mode to calculate constants for vblank timestamping. Our encoder mode_fixup (usually) replaces this data with our backend mode information, which doesn't have the needed data filled in already. Reported-by: Mario Kleiner mario.kleiner.de@gmail.com Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/nouveau/nv50_display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c
index 6ae7a697866e..2dccafc6e9db 100644
--- a/drivers/gpu/drm/nouveau/nv50_display.c
+++ b/drivers/gpu/drm/nouveau/nv50_display.c
@@ -1035,6 +1035,7 @@ static bool
1035nv50_crtc_mode_fixup(struct drm_crtc *crtc, const struct drm_display_mode *mode, 1035nv50_crtc_mode_fixup(struct drm_crtc *crtc, const struct drm_display_mode *mode,
1036 struct drm_display_mode *adjusted_mode) 1036 struct drm_display_mode *adjusted_mode)
1037{ 1037{
1038 drm_mode_set_crtcinfo(adjusted_mode, CRTC_INTERLACE_HALVE_V);
1038 return true; 1039 return true;
1039} 1040}
1040 1041