drm/amd/display: Rename output_bpc to opp_input_bpc
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 9 Nov 2017 21:02:56 +0000 (16:02 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:48:11 +0000 (12:48 -0500)
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@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/calcs/dcn_calcs.c
drivers/gpu/drm/amd/display/dc/dml/display_mode_structs.h
drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c

index b6b0872..f37fb7c 100644 (file)
@@ -439,18 +439,6 @@ static void dcn_bw_calc_rq_dlg_ttu(
        input.dout.output_format = (v->output_format[in_idx] == dcn_bw_420) ? dm_420 : dm_444;
        input.dout.output_type  = (v->output[in_idx] == dcn_bw_hdmi) ? dm_hdmi : dm_dp;
        //input[in_idx].dout.output_standard;
-       switch (v->output_deep_color[in_idx]) {
-       case dcn_bw_encoder_12bpc:
-               input.dout.output_bpc = dm_out_12;
-       break;
-       case dcn_bw_encoder_10bpc:
-               input.dout.output_bpc = dm_out_10;
-       break;
-       case dcn_bw_encoder_8bpc:
-       default:
-               input.dout.output_bpc = dm_out_8;
-       break;
-       }
 
        /*todo: soc->sr_enter_plus_exit_time??*/
        dlg_sys_param.t_srx_delay_us = dc->dcn_ip->dcfclk_cstate_latency / v->dcf_clk_deep_sleep;
index baf1821..2d9d629 100644 (file)
@@ -229,7 +229,7 @@ struct      _vcs_dpi_display_output_params_st       {
        int     output_bpp;
        int     dsc_enable;
        int     wb_enable;
-       int     output_bpc;
+       int     opp_input_bpc;
        int     output_type;
        int     output_format;
        int     output_standard;
index a02c69d..1f337ec 100644 (file)
@@ -589,7 +589,7 @@ static void fetch_pipe_params(struct display_mode_lib *mode_lib)
                mode_lib->vba.NumberOfDSCSlices[mode_lib->vba.NumberOfActivePlanes] =
                                dout->dsc_slices;
                mode_lib->vba.DSCInputBitPerComponent[mode_lib->vba.NumberOfActivePlanes] =
-                               dout->output_bpc == 0 ? 12 : dout->output_bpc;
+                               dout->opp_input_bpc == 0 ? 12 : dout->opp_input_bpc;
                mode_lib->vba.WritebackEnable[mode_lib->vba.NumberOfActivePlanes] = dout->wb_enable;
                mode_lib->vba.WritebackSourceHeight[mode_lib->vba.NumberOfActivePlanes] =
                                dout->wb.wb_src_height;