Skip to content

Commit 3163588

Browse files
Wenjing Liualexdeucher
authored andcommitted
drm/amd/display: skip opp blank or unblank if test pattern enabled
[why] DPG is used to generate both blank and test automation test pattern. When test automation is running the requested test pattern can be overriden by the blank or unblank call because it is using the same hardware. [how] When test pattern is requested, skip blank or unblank. Signed-off-by: Wenjing Liu <[email protected]> Reviewed-by: Nikola Cornij <[email protected]> Acked-by: Harry Wentland <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f7ce7d6 commit 3163588

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,9 @@ void dcn20_blank_pixel_data(
945945
int width = stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.h_border_right;
946946
int height = stream->timing.v_addressable + stream->timing.v_border_bottom + stream->timing.v_border_top;
947947

948+
if (stream->link->test_pattern_enabled)
949+
return;
950+
948951
/* get opp dpg blank color */
949952
color_space_to_black_color(dc, color_space, &black_color);
950953

0 commit comments

Comments
 (0)