Commit 1b7441b0 authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher

drm/amd/display: fix crc_source_select use hardcoded color depth

Signed-off-by: default avatarCharlene Liu <charlene.liu@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent acea7183
......@@ -667,7 +667,25 @@ static enum dc_status bios_parser_crtc_source_select(
crtc_source_select.signal = pipe_ctx->stream->signal;
crtc_source_select.enable_dp_audio = false;
crtc_source_select.sink_signal = pipe_ctx->stream->signal;
crtc_source_select.display_output_bit_depth = PANEL_8BIT_COLOR;
switch (pipe_ctx->stream->timing.display_color_depth) {
case COLOR_DEPTH_666:
crtc_source_select.display_output_bit_depth = PANEL_6BIT_COLOR;
break;
case COLOR_DEPTH_888:
crtc_source_select.display_output_bit_depth = PANEL_8BIT_COLOR;
break;
case COLOR_DEPTH_101010:
crtc_source_select.display_output_bit_depth = PANEL_10BIT_COLOR;
break;
case COLOR_DEPTH_121212:
crtc_source_select.display_output_bit_depth = PANEL_12BIT_COLOR;
break;
default:
BREAK_TO_DEBUGGER();
crtc_source_select.display_output_bit_depth = PANEL_8BIT_COLOR;
break;
}
dcb = sink->ctx->dc_bios;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment