]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Rebuild test pattern params for DP_TEST_PATTERN_VIDEO_MODE
authorGeorge Shen <george.shen@amd.com>
Wed, 27 Mar 2024 22:05:51 +0000 (18:05 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 02:16:51 +0000 (22:16 -0400)
commit3ca7317809fc247336e6a602e855be76dfee9a77
tree753f3d4c22dce47102d09bd779a7856aecab37f2
parent364b1c1de6de36c1b28690265c904c682aecc266
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: Nevenko Stupar <nevenko.stupar@amd.com>
Reviewed-by: Chaitanya Dhere <chaitanya.dhere@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c