aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_display.c
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-10-09 15:14:30 -0400
committerDave Airlie <airlied@redhat.com>2009-10-11 23:42:48 -0400
commitde2103e452ec7f2db5db7c44279735688608381d (patch)
tree10ccecbf806c916a774a486eb83c1b01520c607c /drivers/gpu/drm/radeon/radeon_display.c
parent5a9bcacc0a56f0d9577494e834519480018a6cc3 (diff)
drm/radeon/kms: use drm_mode directly for panel modes
This reduces the number of mode format conversions needed and makes native panel mode support cleaner. Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_display.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_display.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index b8f234497aca..a20bf43389b3 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -761,7 +761,7 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
761 radeon_crtc->rmx_type = radeon_encoder->rmx_type; 761 radeon_crtc->rmx_type = radeon_encoder->rmx_type;
762 memcpy(&radeon_crtc->native_mode, 762 memcpy(&radeon_crtc->native_mode,
763 &radeon_encoder->native_mode, 763 &radeon_encoder->native_mode,
764 sizeof(struct radeon_native_mode)); 764 sizeof(struct drm_display_mode));
765 first = false; 765 first = false;
766 } else { 766 } else {
767 if (radeon_crtc->rmx_type != radeon_encoder->rmx_type) { 767 if (radeon_crtc->rmx_type != radeon_encoder->rmx_type) {
@@ -779,10 +779,10 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc,
779 if (radeon_crtc->rmx_type != RMX_OFF) { 779 if (radeon_crtc->rmx_type != RMX_OFF) {
780 fixed20_12 a, b; 780 fixed20_12 a, b;
781 a.full = rfixed_const(crtc->mode.vdisplay); 781 a.full = rfixed_const(crtc->mode.vdisplay);
782 b.full = rfixed_const(radeon_crtc->native_mode.panel_xres); 782 b.full = rfixed_const(radeon_crtc->native_mode.hdisplay);
783 radeon_crtc->vsc.full = rfixed_div(a, b); 783 radeon_crtc->vsc.full = rfixed_div(a, b);
784 a.full = rfixed_const(crtc->mode.hdisplay); 784 a.full = rfixed_const(crtc->mode.hdisplay);
785 b.full = rfixed_const(radeon_crtc->native_mode.panel_yres); 785 b.full = rfixed_const(radeon_crtc->native_mode.vdisplay);
786 radeon_crtc->hsc.full = rfixed_div(a, b); 786 radeon_crtc->hsc.full = rfixed_div(a, b);
787 } else { 787 } else {
788 radeon_crtc->vsc.full = rfixed_const(1); 788 radeon_crtc->vsc.full = rfixed_const(1);