drm/amd/display: Check hdr support before setting.
authorYongqiang Sun <yongqiang.sun@amd.com>
Thu, 5 Jan 2017 16:26:59 +0000 (11:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:08:47 +0000 (17:08 -0400)
commit10bff005926af12aa7b1d97ea9bc948ccbaed1c9
tree61403fe2764a855c1724fbf190421a9c9bf90dce
parente66e4d64289b647f7787d257dd2be0055ae7df94
drm/amd/display: Check hdr support before setting.

In case of programing info frame to
some monitors don't support HDR, it will
result in black screen or corruption when
unplug monitor.
By checking hdr flag to avoid unnecessary
setting for monitors don't support HDR.

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@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/dce/dce_stream_encoder.c