summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
diff options
context:
space:
mode:
authorAnthony Koo <Anthony.Koo@amd.com>2019-10-16 23:44:55 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-11-13 15:29:43 -0500
commit5ed78cd69a1bf64e6bdb70a05c1c9bde87b209ad (patch)
tree084b7da9ba41c76d7c5940439f93d6c5abf84fae /drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
parenta5132f9728dc7c310736b83422e93e0ad563a3b6 (diff)
downloadlinux-5ed78cd69a1bf64e6bdb70a05c1c9bde87b209ad.tar.gz
linux-5ed78cd69a1bf64e6bdb70a05c1c9bde87b209ad.tar.bz2
linux-5ed78cd69a1bf64e6bdb70a05c1c9bde87b209ad.zip
drm/amd/display: set MSA MISC1 bit 6 while sending colorimetry in VSC SDP
[Why] It is confusing to sinks if we send VSC SDP only on some format. Today we signal colorimetry format using MSA while in formats like sRGB. But when we switch to BT2020 we set the bit to ignore MSA colorimetry and instead use the colorimetry information in the VSC SDP. But if sink supports signaling of colorimetry via VSC SDP we should always set the MSA MISC1 bit 6, instead of doing so selectively. [How] If sink supports signaling of colorimetry via VSC SDP, and we are sending the colorimetry info via VSC SDP with packet revision 05h, then always set MSA MISC1 bit 6. Signed-off-by: Anthony Koo <Anthony.Koo@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h')
-rw-r--r--drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h b/drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
index ca8ce3c55337..42cbeffac640 100644
--- a/drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
+++ b/drivers/gpu/drm/amd/display/modules/inc/mod_info_packet.h
@@ -26,6 +26,7 @@
#ifndef MOD_INFO_PACKET_H_
#define MOD_INFO_PACKET_H_
+#include "dm_services.h"
#include "mod_shared.h"
//Forward Declarations
struct dc_stream_state;
@@ -33,7 +34,8 @@ struct dc_info_packet;
struct mod_vrr_params;
void mod_build_vsc_infopacket(const struct dc_stream_state *stream,
- struct dc_info_packet *info_packet);
+ struct dc_info_packet *info_packet,
+ bool *use_vsc_sdp_for_colorimetry);
void mod_build_hf_vsif_infopacket(const struct dc_stream_state *stream,
struct dc_info_packet *info_packet, int ALLMEnabled, int ALLMValue);