[PATCH 1/2] drm/amd/display: Set RMX_ASPECT as default
Bhawanpreet Lakha
Bhawanpreet.Lakha at amd.com
Fri Nov 16 19:59:00 UTC 2018
Setting this allows for display scaling by default
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha at amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 9a8d698f277f..e0328e8dcff3 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -2999,9 +2999,11 @@ int amdgpu_dm_connector_atomic_set_property(struct drm_connector *connector,
rmx_type = RMX_FULL;
break;
case DRM_MODE_SCALE_NONE:
- default:
rmx_type = RMX_OFF;
break;
+ default:
+ rmx_type = RMX_ASPECT;
+ break;
}
if (dm_old_state->scaling == rmx_type)
@@ -3118,7 +3120,7 @@ void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector)
state = kzalloc(sizeof(*state), GFP_KERNEL);
if (state) {
- state->scaling = RMX_OFF;
+ state->scaling = RMX_ASPECT;
state->underscan_enable = false;
state->underscan_hborder = 0;
state->underscan_vborder = 0;
--
2.14.1
More information about the amd-gfx
mailing list