OSDN Git Service

drm/radeon: enable display scaling on all connectors (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Jul 2014 17:21:59 +0000 (13:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Aug 2014 12:53:25 +0000 (08:53 -0400)
commitda9976206c15178eeae1b4445c9266125bf35b0a
tree69f2d9b88b864220b2f32d1185a4a5f0514b52de
parent9c2448780faf013af4333b9476dcaefc94f98c93
drm/radeon: enable display scaling on all connectors (v2)

This enables the display scaler on all connectors for r5xx
and newer asics.  Previously we only enabled the scaler for
fixed mode displays (eDP or LVDS) since they have to use the
scaler to support non-native modes.  Most other displays
are multi-sync or have a built in scaler to support non-native
modes.  The default scaling mode for non-fixed displays is
none which will use the scaler in the monitor.  Note that
we do not populate any fake modes like we do for fixed
displays so it will only use the modes in the edid.  For
other modes, you'll need to populate them manually.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=80868

v2: properly handle scaling with no modes defined

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_encoders.c
drivers/gpu/drm/radeon/radeon_connectors.c