drm/amd/display: Add debug flag for VSR support
authorCharlene Liu <charlene.liu@amd.com>
Mon, 2 Oct 2017 20:25:58 +0000 (16:25 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:47:16 +0000 (16:47 -0400)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c

index eeb8ee5acdc1e96888a0560691af5ed99f0b74be..defc44393b381791b705408f0ed5390b544fbdea 100644 (file)
@@ -218,6 +218,7 @@ struct dc_debug {
        bool disable_hbup_pg;
        bool disable_dpp_pg;
        bool stereo_support;
+       bool vsr_support;
 };
 struct dc_state;
 struct resource_pool;
index 3000ddab23578f0f6358b80de1a29a009d65fd82..1b108ae2e65609a03e3b51f9c2377d6389528e21 100644 (file)
@@ -428,6 +428,7 @@ static const struct dc_debug debug_defaults_drv = {
                .pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
                .disable_dcc = DCC_ENABLE,
                .voltage_align_fclk = true,
+               .vsr_support = true,
 };
 
 static const struct dc_debug debug_defaults_diags = {
index 8dbc82ff9b3a380784f9a8cfab6f9c1a7953d5f2..178dadda74f97e64b3046eb5ea5165b1254927b0 100644 (file)
@@ -25,6 +25,7 @@
 
 #include "reg_helper.h"
 #include "dcn10_timing_generator.h"
+#include "dc.h"
 
 #define REG(reg)\
        tgn10->tg_regs->reg