Skip to content

Commit d736c2e

Browse files
George Shenalexdeucher
authored andcommitted
drm/amd/display: Set stream's DP test pattern upon test request
[Why] A recent refactor of DC's DP test pattern automation code requires the DC stream's test pattern and test pattern color space fields to be correctly populated before calling dc_link_dp_set_test_pattern. [How] Populate stream's test pattern type and color space fields before calling into DC to program DP test pattern. Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Acked-by: Hersen Wu <hersenxs.wu@amd.com> Signed-off-by: George Shen <george.shen@amd.com> Signed-off-by: Hersen Wu <hersenxs.wu@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 35c1d96 commit d736c2e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,9 @@ bool dm_helpers_dp_handle_test_pattern_request(
12161216

12171217
}
12181218

1219+
pipe_ctx->stream->test_pattern.type = test_pattern;
1220+
pipe_ctx->stream->test_pattern.color_space = test_pattern_color_space;
1221+
12191222
dc_link_dp_set_test_pattern(
12201223
(struct dc_link *) link,
12211224
test_pattern,

0 commit comments

Comments
 (0)