drm/radeon/kms: rework scaler handling
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 12 Nov 2009 19:55:14 +0000 (14:55 -0500)
committerDave Airlie <airlied@redhat.com>
Wed, 2 Dec 2009 01:36:43 +0000 (11:36 +1000)
commit80297e87bc9728a6ce559063fc4c117eba1f955a
treef68e1cf3628cf547cf58808c7506824e0000596a
parentfe6890c3e8019cf1cebce60a86c19180359d3292
drm/radeon/kms: rework scaler handling

Keep requested scaler type in radeon_encoder
and the actual scaler type used in radeon_crtc.
This prevents us from enabling the scaler when it's
not required (i.e., the requested mode is the native
mode).  Also, always set the adjusted mode equal
to the native mode for lvds.

Should fix:
https://bugzilla.redhat.com/show_bug.cgi?id=522271

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Acked-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/radeon_encoders.c
drivers/gpu/drm/radeon/radeon_legacy_encoders.c
drivers/gpu/drm/radeon/radeon_mode.h