Home
last modified time | relevance | path

Searched refs:cnv_params (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dwb.c78 REG_UPDATE_2(CNV_SOURCE_SIZE, CNV_SOURCE_WIDTH, params->cnv_params.src_width, in dwb2_config_dwb_cnv()
79 CNV_SOURCE_HEIGHT, params->cnv_params.src_height); in dwb2_config_dwb_cnv()
82 if (params->cnv_params.crop_en) { in dwb2_config_dwb_cnv()
84 REG_UPDATE(CNV_WINDOW_START, CNV_WINDOW_START_X, params->cnv_params.crop_x); in dwb2_config_dwb_cnv()
85 REG_UPDATE(CNV_WINDOW_START, CNV_WINDOW_START_Y, params->cnv_params.crop_y); in dwb2_config_dwb_cnv()
86 REG_UPDATE(CNV_WINDOW_SIZE, CNV_WINDOW_WIDTH, params->cnv_params.crop_width); in dwb2_config_dwb_cnv()
87 REG_UPDATE(CNV_WINDOW_SIZE, CNV_WINDOW_HEIGHT, params->cnv_params.crop_height); in dwb2_config_dwb_cnv()
96 REG_UPDATE(CNV_MODE, CNV_OUT_BPC, params->cnv_params.cnv_out_bpc); in dwb2_config_dwb_cnv()
104 if ((params->cnv_params.src_width != params->dest_width) || in dwb2_enable()
105 (params->cnv_params.src_height != params->dest_height)) { in dwb2_enable()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dwb/dcn30/
H A Ddcn30_dwb.c71 REG_UPDATE_2(FC_SOURCE_SIZE, FC_SOURCE_WIDTH, params->cnv_params.src_width, in dwb3_config_fc()
72 FC_SOURCE_HEIGHT, params->cnv_params.src_height); in dwb3_config_fc()
75 if (params->cnv_params.crop_en) { in dwb3_config_fc()
77 REG_UPDATE(FC_WINDOW_START, FC_WINDOW_START_X, params->cnv_params.crop_x); in dwb3_config_fc()
78 REG_UPDATE(FC_WINDOW_START, FC_WINDOW_START_Y, params->cnv_params.crop_y); in dwb3_config_fc()
79 REG_UPDATE(FC_WINDOW_SIZE, FC_WINDOW_WIDTH, params->cnv_params.crop_width); in dwb3_config_fc()
80 REG_UPDATE(FC_WINDOW_SIZE, FC_WINDOW_HEIGHT, params->cnv_params.crop_height); in dwb3_config_fc()
233 REG_UPDATE(DWB_OUT_CTRL, OUT_FORMAT, params->cnv_params.fc_out_format); in dwb3_set_denorm()
236 if (params->cnv_params.fc_out_format == DWB_OUT_FORMAT_32BPP_ARGB || in dwb3_set_denorm()
237 params->cnv_params.fc_out_format == DWB_OUT_FORMAT_32BPP_RGBA) { in dwb3_set_denorm()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn30/
H A Ddcn30_fpu.c284 dout_wb.wb_src_height = wb_info->dwb_params.cnv_params.crop_en ? in dcn30_fpu_populate_dml_writeback_from_context()
285 wb_info->dwb_params.cnv_params.crop_height : in dcn30_fpu_populate_dml_writeback_from_context()
286 wb_info->dwb_params.cnv_params.src_height; in dcn30_fpu_populate_dml_writeback_from_context()
287 dout_wb.wb_src_width = wb_info->dwb_params.cnv_params.crop_en ? in dcn30_fpu_populate_dml_writeback_from_context()
288 wb_info->dwb_params.cnv_params.crop_width : in dcn30_fpu_populate_dml_writeback_from_context()
289 wb_info->dwb_params.cnv_params.src_width; in dcn30_fpu_populate_dml_writeback_from_context()
303 dout_wb.wb_hratio = wb_info->dwb_params.cnv_params.crop_en ? in dcn30_fpu_populate_dml_writeback_from_context()
304 (double)wb_info->dwb_params.cnv_params.crop_width / in dcn30_fpu_populate_dml_writeback_from_context()
306 (double)wb_info->dwb_params.cnv_params.src_width / in dcn30_fpu_populate_dml_writeback_from_context()
308 dout_wb.wb_vratio = wb_info->dwb_params.cnv_params.crop_en ? in dcn30_fpu_populate_dml_writeback_from_context()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml2/
H A Ddml2_translation_helper.c1210 out->ActiveWritebacksPerSurface[location] = wb_info->dwb_params.cnv_params.src_width; in populate_dml_writeback_cfg_from_stream_state()
1214 out->WritebackSourceWidth[location] = wb_info->dwb_params.cnv_params.crop_en ? in populate_dml_writeback_cfg_from_stream_state()
1215 wb_info->dwb_params.cnv_params.crop_width : in populate_dml_writeback_cfg_from_stream_state()
1216 wb_info->dwb_params.cnv_params.src_width; in populate_dml_writeback_cfg_from_stream_state()
1218 out->WritebackSourceHeight[location] = wb_info->dwb_params.cnv_params.crop_en ? in populate_dml_writeback_cfg_from_stream_state()
1219 wb_info->dwb_params.cnv_params.crop_height : in populate_dml_writeback_cfg_from_stream_state()
1220 wb_info->dwb_params.cnv_params.src_height; in populate_dml_writeback_cfg_from_stream_state()
1227 out->WritebackHRatio[location] = wb_info->dwb_params.cnv_params.crop_en ? in populate_dml_writeback_cfg_from_stream_state()
1228 (double)wb_info->dwb_params.cnv_params.crop_width / in populate_dml_writeback_cfg_from_stream_state()
1230 (double)wb_info->dwb_params.cnv_params.src_width / in populate_dml_writeback_cfg_from_stream_state()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml/dcn20/
H A Ddcn20_fpu.c1007 pipes[pipe_cnt].dout.wb.wb_src_height = wb_info->dwb_params.cnv_params.crop_height; in dcn20_populate_dml_writeback_from_context()
1008 pipes[pipe_cnt].dout.wb.wb_src_width = wb_info->dwb_params.cnv_params.crop_width; in dcn20_populate_dml_writeback_from_context()
2504 dout_wb.wb_src_height = wb_info->dwb_params.cnv_params.crop_en ? in dcn201_populate_dml_writeback_from_context_fpu()
2505 wb_info->dwb_params.cnv_params.crop_height : in dcn201_populate_dml_writeback_from_context_fpu()
2506 wb_info->dwb_params.cnv_params.src_height; in dcn201_populate_dml_writeback_from_context_fpu()
2507 dout_wb.wb_src_width = wb_info->dwb_params.cnv_params.crop_en ? in dcn201_populate_dml_writeback_from_context_fpu()
2508 wb_info->dwb_params.cnv_params.crop_width : in dcn201_populate_dml_writeback_from_context_fpu()
2509 wb_info->dwb_params.cnv_params.src_width; in dcn201_populate_dml_writeback_from_context_fpu()
2516 dout_wb.wb_hratio = wb_info->dwb_params.cnv_params.crop_en ? in dcn201_populate_dml_writeback_from_context_fpu()
2517 (double)wb_info->dwb_params.cnv_params.crop_width / in dcn201_populate_dml_writeback_from_context_fpu()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/
H A Ddc_types.h420 struct dc_dwb_cnv_params cnv_params; /* CNV source size and cropping window parameters */ member
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.c9684 wb_info->dwb_params.cnv_params.cnv_out_bpc = DWB_CNV_OUT_BPC_10BPC; in dm_set_writeback()
9687 wb_info->dwb_params.cnv_params.src_width = acrtc->base.mode.crtc_hdisplay; in dm_set_writeback()
9688 wb_info->dwb_params.cnv_params.src_height = acrtc->base.mode.crtc_vdisplay; in dm_set_writeback()
9692 wb_info->dwb_params.cnv_params.crop_en = false; in dm_set_writeback()
9695 wb_info->dwb_params.cnv_params.out_max_pix_val = 0x3ff; // 10 bits in dm_set_writeback()
9696 wb_info->dwb_params.cnv_params.out_min_pix_val = 0; in dm_set_writeback()
9697 wb_info->dwb_params.cnv_params.fc_out_format = DWB_OUT_FORMAT_32BPP_ARGB; in dm_set_writeback()
9698 wb_info->dwb_params.cnv_params.out_denorm_mode = DWB_OUT_DENORM_BYPASS; in dm_set_writeback()