summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn10
diff options
context:
space:
mode:
authorMurton Liu2019-03-25 19:51:28 +0100
committerAlex Deucher2019-04-10 20:53:28 +0200
commitfbd06ec492fc6e078a62664c5b4a0d74b90285be (patch)
treecece532a3b44132765efce7e41b8d43ee7d58495 /drivers/gpu/drm/amd/display/dc/dcn10
parentdrm/amd/display: fix underflow on boot (diff)
downloadkernel-qcow2-linux-fbd06ec492fc6e078a62664c5b4a0d74b90285be.tar.gz
kernel-qcow2-linux-fbd06ec492fc6e078a62664c5b4a0d74b90285be.tar.xz
kernel-qcow2-linux-fbd06ec492fc6e078a62664c5b4a0d74b90285be.zip
drm/amd/display: HDR visual confirmation incorrectly reports black color
[Why] Checking against a TF that is unused causes us to default to black [How] Check against PQ instead Signed-off-by: Murton Liu <murton.liu@amd.com> Reviewed-by: Aric Cyr <Aric.Cyr@amd.com> Acked-by: Leo Li <sunpeng.li@amd.com> Acked-by: Tony Cheng <Tony.Cheng@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn10')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
index f6591488ef9b..c2b93a851dc6 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
@@ -1852,7 +1852,7 @@ void dcn10_get_hdr_visual_confirm_color(
switch (top_pipe_ctx->plane_res.scl_data.format) {
case PIXEL_FORMAT_ARGB2101010:
- if (top_pipe_ctx->stream->out_transfer_func->tf == TRANSFER_FUNCTION_UNITY) {
+ if (top_pipe_ctx->stream->out_transfer_func->tf == TRANSFER_FUNCTION_PQ) {
/* HDR10, ARGB2101010 - set boarder color to red */
color->color_r_cr = color_value;
}