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)
commitb232d4ed92eafb0d31adc01ee7a86c1309394418
treedbeea6c209ceadabcf56f6221e27ff96af726eda
parent88694af9e4d1feaf635c23844833960f8958af78
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