<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Acked-by: Alex Deucher <alexander.deucher@amd.com><br>
</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Nicholas Kazlauskas <nicholas.kazlauskas@amd.com><br>
<b>Sent:</b> Friday, December 7, 2018 12:15:01 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Li, Sun peng (Leo); Wentland, Harry; Lakha, Bhawanpreet; Kazlauskas, Nicholas<br>
<b>Subject:</b> [PATCH] Revert "drm/amd/display: Set RMX_ASPECT as default"</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">This reverts commit 91b66c47ba3468f7882ea4a84d5e0e0c186b638f.<br>
<br>
Forcing RMX_ASPECT as default uses the preferred/native mode's timings<br>
for any mode the user selects and scales the image. This provides a<br>
a consistently nicer result in the case where the selected mode's<br>
refresh rate matches the native mode's refresh but this isn't always<br>
the case.<br>
<br>
For example, if the monitor is 1080p@144Hz and the preferred mode is<br>
60Hz then even if the user selects 1080p@144Hz as their selected mode<br>
they'll get 1080p@60Hz.<br>
<br>
Cc: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com><br>
Cc: Leo Li <sunpeng.li@amd.com><br>
Cc: Harry Wentland <harry.wentland@amd.com><br>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com><br>
---<br>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 ++----<br>
1 file changed, 2 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
index 23d61570df17..fa2b00ad1713 100644<br>
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c<br>
@@ -3100,10 +3100,8 @@ int amdgpu_dm_connector_atomic_set_property(struct drm_connector *connector,<br>
rmx_type = RMX_FULL;<br>
break;<br>
case DRM_MODE_SCALE_NONE:<br>
- rmx_type = RMX_OFF;<br>
- break;<br>
default:<br>
- rmx_type = RMX_ASPECT;<br>
+ rmx_type = RMX_OFF;<br>
break;<br>
}<br>
<br>
@@ -3216,7 +3214,7 @@ void amdgpu_dm_connector_funcs_reset(struct drm_connector *connector)<br>
state = kzalloc(sizeof(*state), GFP_KERNEL);<br>
<br>
if (state) {<br>
- state->scaling = RMX_ASPECT;<br>
+ state->scaling = RMX_OFF;<br>
state->underscan_enable = false;<br>
state->underscan_hborder = 0;<br>
state->underscan_vborder = 0;<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font></div>
</body>
</html>