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>
This commit is contained in:
parent
d5ca5fdbeb
commit
fbd06ec492
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue