drm/amd/display: reject 3D mode based on static debug flag.
authorCharlene Liu <charlene.liu@amd.com>
Mon, 2 Oct 2017 22:01:36 +0000 (18:01 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 21 Oct 2017 20:47:27 +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 defc44393b381791b705408f0ed5390b544fbdea..4c47a489c87a0e6655b1179e6dca1ae0be929b6e 100644 (file)
@@ -217,7 +217,7 @@ struct dc_debug {
        bool force_abm_enable;
        bool disable_hbup_pg;
        bool disable_dpp_pg;
-       bool stereo_support;
+       bool disable_stereo_support;
        bool vsr_support;
 };
 struct dc_state;
index 1b108ae2e65609a03e3b51f9c2377d6389528e21..f168335e95bf228a0690eccca87834c5303214c2 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,
+               .disable_stereo_support = true,
                .vsr_support = true,
 };
 
index 178dadda74f97e64b3046eb5ea5165b1254927b0..1994865d4351724ac62ac0b9926f7801cd9badb9 100644 (file)
@@ -499,6 +499,9 @@ static bool tgn10_validate_timing(
                timing->timing_3d_format != TIMING_3D_FORMAT_INBAND_FA)
                return false;
 
+       if (timing->timing_3d_format != TIMING_3D_FORMAT_NONE &&
+               tg->ctx->dc->debug.disable_stereo_support)
+               return false;
        /* Temporarily blocking interlacing mode until it's supported */
        if (timing->flags.INTERLACE == 1)
                return false;