Commit 3ca73178 authored by George Shen's avatar George Shen Committed by Alex Deucher

drm/amd/display: Rebuild test pattern params for DP_TEST_PATTERN_VIDEO_MODE

[Why]
For video mode test pattern (i.e. test pattern disable), the call to
rebuild test pattern params for the pipe is skipped. This causes
dynamic disablement of test pattern to not work, as the
test_pattern_params of the pipe will not be updated and retain the
values of the previously enabled test pattern.

[How]
Rebuild test pattern params even when test pattern is video mode,
allowing the pipe to have updated test_pattern_params values.
Reviewed-by: default avatarNevenko Stupar <nevenko.stupar@amd.com>
Reviewed-by: default avatarChaitanya Dhere <chaitanya.dhere@amd.com>
Acked-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: default avatarGeorge Shen <george.shen@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 364b1c1d
...@@ -2329,8 +2329,8 @@ static bool update_pipe_params_after_odm_slice_count_change( ...@@ -2329,8 +2329,8 @@ static bool update_pipe_params_after_odm_slice_count_change(
if (pool->funcs->build_pipe_pix_clk_params) if (pool->funcs->build_pipe_pix_clk_params)
pool->funcs->build_pipe_pix_clk_params(otg_master); pool->funcs->build_pipe_pix_clk_params(otg_master);
if (otg_master->stream->test_pattern.type != DP_TEST_PATTERN_VIDEO_MODE) resource_build_test_pattern_params(&context->res_ctx, otg_master);
resource_build_test_pattern_params(&context->res_ctx, otg_master);
return result; return result;
} }
......
...@@ -2120,7 +2120,7 @@ static bool dcn32_apply_merge_split_flags_helper( ...@@ -2120,7 +2120,7 @@ static bool dcn32_apply_merge_split_flags_helper(
struct pipe_ctx *otg_master = resource_get_otg_master_for_stream(&context->res_ctx, struct pipe_ctx *otg_master = resource_get_otg_master_for_stream(&context->res_ctx,
context->streams[i]); context->streams[i]);
if (otg_master && otg_master->stream->test_pattern.type != DP_TEST_PATTERN_VIDEO_MODE) if (otg_master)
resource_build_test_pattern_params(&context->res_ctx, otg_master); resource_build_test_pattern_params(&context->res_ctx, otg_master);
} }
} }
......
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