aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
diff options
context:
space:
mode:
authorAnthony Koo <Anthony.Koo@amd.com>2017-06-06 16:30:51 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:07:54 -0400
commitfea0f581ab529e194d424452a6f7ecd88c5a2116 (patch)
treed7bab1ab3cf7462199511ced21367c37574d178b /drivers/gpu/drm/amd/display/modules/freesync/freesync.c
parentba326a9185f1c56d86e51dd89589e4eff42f02eb (diff)
drm/amd/display: Temporary disable BTR FreeSync support for now
Reduce timer tick interval for the static screen Signed-off-by: Anthony Koo <anthony.koo@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
-rw-r--r--drivers/gpu/drm/amd/display/modules/freesync/freesync.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
index f79c47951f90..7109742bd67c 100644
--- a/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
+++ b/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
@@ -436,11 +436,14 @@ static void calc_freesync_range(struct core_freesync *core_freesync,
436 } 436 }
437 437
438 /* Determine whether BTR can be supported */ 438 /* Determine whether BTR can be supported */
439 if (max_frame_duration_in_ns >= 439 //if (max_frame_duration_in_ns >=
440 2 * min_frame_duration_in_ns) 440 // 2 * min_frame_duration_in_ns)
441 core_freesync->map[index].caps->btr_supported = true; 441 // core_freesync->map[index].caps->btr_supported = true;
442 else 442 //else
443 core_freesync->map[index].caps->btr_supported = false; 443 // core_freesync->map[index].caps->btr_supported = false;
444
445 /* Temp, keep btr disabled */
446 core_freesync->map[index].caps->btr_supported = false;
444 447
445 /* Cache the time variables */ 448 /* Cache the time variables */
446 state->time.max_render_time_in_us = 449 state->time.max_render_time_in_us =