Commit 73fb63e7 authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher

drm/amd/display: reject 3D mode based on static debug flag.

Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Reviewed-by: default avatarKrunoslav Kovac <Krunoslav.Kovac@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 458e9d03
...@@ -217,7 +217,7 @@ struct dc_debug { ...@@ -217,7 +217,7 @@ struct dc_debug {
bool force_abm_enable; bool force_abm_enable;
bool disable_hbup_pg; bool disable_hbup_pg;
bool disable_dpp_pg; bool disable_dpp_pg;
bool stereo_support; bool disable_stereo_support;
bool vsr_support; bool vsr_support;
}; };
struct dc_state; struct dc_state;
......
...@@ -428,6 +428,7 @@ static const struct dc_debug debug_defaults_drv = { ...@@ -428,6 +428,7 @@ static const struct dc_debug debug_defaults_drv = {
.pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP, .pipe_split_policy = MPC_SPLIT_AVOID_MULT_DISP,
.disable_dcc = DCC_ENABLE, .disable_dcc = DCC_ENABLE,
.voltage_align_fclk = true, .voltage_align_fclk = true,
.disable_stereo_support = true,
.vsr_support = true, .vsr_support = true,
}; };
......
...@@ -499,6 +499,9 @@ static bool tgn10_validate_timing( ...@@ -499,6 +499,9 @@ static bool tgn10_validate_timing(
timing->timing_3d_format != TIMING_3D_FORMAT_INBAND_FA) timing->timing_3d_format != TIMING_3D_FORMAT_INBAND_FA)
return false; 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 */ /* Temporarily blocking interlacing mode until it's supported */
if (timing->flags.INTERLACE == 1) if (timing->flags.INTERLACE == 1)
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment