]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Only force modesets when toggling HDR
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 28 May 2019 19:08:36 +0000 (15:08 -0400)
committerHarry Wentland <harry.wentland@amd.com>
Mon, 3 Jun 2019 14:23:10 +0000 (10:23 -0400)
commit5c9ce9d56da921324e6b9378bfbba074f614039d
treedbeea6c209ceadabcf56f6221e27ff96af726eda
parent8fd8431e9dd80dcfb56854541f79edd79fef9f06
drm/amd/display: Only force modesets when toggling HDR

[Why]
We can issue HDR static metadata as part of stream updates for
non-modesets as long as we force a modeset when entering or exiting HDR.

This avoids unnecessary blanking for simple metadata updates.

[How]
When changing scaling and abm for the stream also check if HDR has
changed and send the stream update. This will only happen in non-modeset
cases.

Cc: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190528190836.10738-3-nicholas.kazlauskas@amd.com
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c