Skip to content

Commit df27190

Browse files
committed
drm/amd/display: Use scaling for non-native resolutions on LVDS
[Why] Common resolutions are added to supported modes to enable compatibility scenarios that compositors may use to do things like clone displays. There is no guarantee however that the panel will natively support these modes. [How] If the compositor hasn't enabled scaling but a non-native resolution has been picked for an LVDS panel turn the scaler on anyway. This will ensure compatibility. Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 6d396e7 commit df27190

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7901,7 +7901,8 @@ static int dm_encoder_helper_atomic_check(struct drm_encoder *encoder,
79017901
int clock, bpp = 0;
79027902
bool is_y420 = false;
79037903

7904-
if (connector->connector_type == DRM_MODE_CONNECTOR_eDP) {
7904+
if ((connector->connector_type == DRM_MODE_CONNECTOR_eDP) ||
7905+
(connector->connector_type == DRM_MODE_CONNECTOR_LVDS)) {
79057906
struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder);
79067907
struct drm_display_mode *native_mode = &amdgpu_encoder->native_mode;
79077908
enum drm_mode_status result;

0 commit comments

Comments
 (0)