/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn201/ |
A D | dcn201_dpp.c | 185 struct scaler_data *scl_data, in dpp201_get_optimal_number_of_taps() argument 190 if (scl_data->viewport.width > scl_data->recout.width) in dpp201_get_optimal_number_of_taps() 195 if (scl_data->viewport.width != scl_data->h_active && in dpp201_get_optimal_number_of_taps() 196 scl_data->viewport.height != scl_data->v_active && in dpp201_get_optimal_number_of_taps() 201 if (scl_data->viewport.width > scl_data->h_active && in dpp201_get_optimal_number_of_taps() 217 scl_data->taps.h_taps = 8; in dpp201_get_optimal_number_of_taps() 219 scl_data->taps.h_taps = 4; in dpp201_get_optimal_number_of_taps() 225 scl_data->taps.v_taps = 8; in dpp201_get_optimal_number_of_taps() 227 scl_data->taps.v_taps = 4; in dpp201_get_optimal_number_of_taps() 249 scl_data->taps.h_taps = 1; in dpp201_get_optimal_number_of_taps() [all …]
|
A D | dcn201_dpp.h | 72 struct scaler_data scl_data; member
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/ |
A D | dcn10_dpp_dscl.c | 301 && (scl_data->taps.h_taps > 1 && scl_data->taps.h_taps_c > 1); in dpp1_dscl_set_scl_filter() 304 && (scl_data->taps.v_taps > 1 && scl_data->taps.v_taps_c > 1); in dpp1_dscl_set_scl_filter() 321 scl_data->taps.h_taps, scl_data->ratios.horz); in dpp1_dscl_set_scl_filter() 323 scl_data->taps.v_taps, scl_data->ratios.vert); in dpp1_dscl_set_scl_filter() 330 scl_data->taps.h_taps_c, scl_data->ratios.horz_c); in dpp1_dscl_set_scl_filter() 332 scl_data->taps.v_taps_c, scl_data->ratios.vert_c); in dpp1_dscl_set_scl_filter() 404 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dpp1_dscl_calc_lb_num_partitions() 405 scl_data->viewport.width : scl_data->recout.width; in dpp1_dscl_calc_lb_num_partitions() 407 scl_data->viewport_c.width : scl_data->recout.width; in dpp1_dscl_calc_lb_num_partitions() 640 if (memcmp(&dpp->scl_data, scl_data, sizeof(*scl_data)) == 0) in dpp1_dscl_set_scaler_manual_scale() [all …]
|
A D | dcn10_dpp.c | 126 struct scaler_data *scl_data, in dpp1_get_optimal_number_of_taps() argument 136 if (scl_data->viewport.width > scl_data->h_active && in dpp1_get_optimal_number_of_taps() 155 scl_data->taps.h_taps = 4; in dpp1_get_optimal_number_of_taps() 159 scl_data->taps.v_taps = 4; in dpp1_get_optimal_number_of_taps() 163 scl_data->taps.v_taps_c = 2; in dpp1_get_optimal_number_of_taps() 167 scl_data->taps.h_taps_c = 2; in dpp1_get_optimal_number_of_taps() 176 scl_data->taps.h_taps = 1; in dpp1_get_optimal_number_of_taps() 178 scl_data->taps.v_taps = 1; in dpp1_get_optimal_number_of_taps() 180 scl_data->taps.h_taps_c = 1; in dpp1_get_optimal_number_of_taps() 182 scl_data->taps.v_taps_c = 1; in dpp1_get_optimal_number_of_taps() [all …]
|
A D | dcn10_hw_sequencer.c | 2816 &pipe_ctx->plane_res.scl_data.viewport, in dcn10_update_dchubp_dpp() 2817 &pipe_ctx->plane_res.scl_data.viewport_c); in dcn10_update_dchubp_dpp() 3375 const struct scaler_data *scl_data = &pipe_ctx->plane_res.scl_data; in dcn10_can_pipe_disable_cursor() local 3376 struct rect r1 = scl_data->recout, r2, r2_half; in dcn10_can_pipe_disable_cursor() 3391 r2 = test_pipe->plane_res.scl_data.recout; in dcn10_can_pipe_disable_cursor() 3521 pipe_ctx->plane_res.scl_data.viewport.width; in dcn10_set_cursor_position() 3523 pipe_ctx->plane_res.scl_data.viewport.x; in dcn10_set_cursor_position() 3551 (pos_cpy.y - pipe_ctx->plane_res.scl_data.viewport.x) + pipe_ctx->plane_res.scl_data.viewport.x; in dcn10_set_cursor_position() 3560 pipe_ctx->plane_res.scl_data.viewport.y; in dcn10_set_cursor_position() 3614 pipe_ctx->plane_res.scl_data.viewport.width; in dcn10_set_cursor_position() [all …]
|
A D | dcn10_dpp.h | 1367 struct scaler_data scl_data; member 1398 const struct scaler_data *scl_data, 1490 const struct scaler_data *scl_data); 1511 struct scaler_data *scl_data,
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn32/ |
A D | dcn32_dpp.c | 35 const struct scaler_data *scl_data, in dscl32_calc_lb_num_partitions() argument 43 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl32_calc_lb_num_partitions() 44 scl_data->viewport.width : scl_data->recout.width; in dscl32_calc_lb_num_partitions() 45 int line_size_c = scl_data->viewport_c.width < scl_data->recout.width ? in dscl32_calc_lb_num_partitions() 46 scl_data->viewport_c.width : scl_data->recout.width; in dscl32_calc_lb_num_partitions() 67 if (scl_data->viewport.width == scl_data->h_active && in dscl32_calc_lb_num_partitions() 68 scl_data->viewport.height == scl_data->v_active) { in dscl32_calc_lb_num_partitions() 81 if (scl_data->viewport.width == scl_data->h_active && in dscl32_calc_lb_num_partitions() 82 scl_data->viewport.height == scl_data->v_active) { in dscl32_calc_lb_num_partitions() 97 if (scl_data->lb_params.alpha_en in dscl32_calc_lb_num_partitions()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn30/ |
A D | dcn30_dpp.c | 384 struct scaler_data *scl_data, in dpp3_get_optimal_number_of_taps() argument 392 if (scl_data->viewport.width > scl_data->h_active && in dpp3_get_optimal_number_of_taps() 404 scl_data->taps.h_taps = min(2 * dc_fixpt_ceil(scl_data->ratios.horz), 8); in dpp3_get_optimal_number_of_taps() 406 scl_data->taps.h_taps = 4; in dpp3_get_optimal_number_of_taps() 413 scl_data->taps.v_taps = 4; in dpp3_get_optimal_number_of_taps() 420 scl_data->taps.v_taps_c = 4; in dpp3_get_optimal_number_of_taps() 425 scl_data->taps.h_taps_c = min(2 * dc_fixpt_ceil(scl_data->ratios.horz_c), 8); in dpp3_get_optimal_number_of_taps() 427 scl_data->taps.h_taps_c = 4; in dpp3_get_optimal_number_of_taps() 471 scl_data->taps.h_taps = 1; in dpp3_get_optimal_number_of_taps() 473 scl_data->taps.v_taps = 1; in dpp3_get_optimal_number_of_taps() [all …]
|
A D | dcn30_dpp.h | 573 struct scaler_data scl_data; member 596 struct scaler_data *scl_data,
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce60/ |
A D | dce60_hw_sequencer.c | 202 switch (pipe_ctx->plane_res.scl_data.format) { in dce60_get_surface_visual_confirm_color() 248 pipe_ctx->plane_res.scl_data.lb_params.depth, in dce60_program_scaler() 266 &pipe_ctx->plane_res.scl_data); in dce60_program_scaler() 371 pipe_ctx->plane_res.scl_data.viewport.width, in dce60_program_front_end_for_pipe() 372 pipe_ctx->plane_res.scl_data.viewport.height, in dce60_program_front_end_for_pipe() 373 pipe_ctx->plane_res.scl_data.viewport.x, in dce60_program_front_end_for_pipe() 374 pipe_ctx->plane_res.scl_data.viewport.y, in dce60_program_front_end_for_pipe() 375 pipe_ctx->plane_res.scl_data.recout.width, in dce60_program_front_end_for_pipe() 376 pipe_ctx->plane_res.scl_data.recout.height, in dce60_program_front_end_for_pipe() 377 pipe_ctx->plane_res.scl_data.recout.x, in dce60_program_front_end_for_pipe() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn20/ |
A D | dcn20_dpp.c | 259 const struct scaler_data *scl_data, in dscl2_calc_lb_num_partitions() argument 267 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl2_calc_lb_num_partitions() 268 scl_data->viewport.width : scl_data->recout.width; in dscl2_calc_lb_num_partitions() 269 int line_size_c = scl_data->viewport_c.width < scl_data->recout.width ? in dscl2_calc_lb_num_partitions() 270 scl_data->viewport_c.width : scl_data->recout.width; in dscl2_calc_lb_num_partitions() 304 if (scl_data->lb_params.alpha_en in dscl2_calc_lb_num_partitions()
|
A D | dcn20_hwseq.c | 1430 …if (memcmp(&old_pipe->plane_res.scl_data, &new_pipe->plane_res.scl_data, sizeof(struct scaler_data… in dcn20_detect_pipe_changes() 1433 …if (memcmp(&old_pipe->plane_res.scl_data.viewport, &new_pipe->plane_res.scl_data.viewport, sizeof(… in dcn20_detect_pipe_changes() 1434 || memcmp(&old_pipe->plane_res.scl_data.viewport_c, in dcn20_detect_pipe_changes() 1435 &new_pipe->plane_res.scl_data.viewport_c, sizeof(struct rect))) in dcn20_detect_pipe_changes() 1580 pipe_ctx->plane_res.scl_data.lb_params.alpha_en = pipe_ctx->plane_state->per_pixel_alpha; in dcn20_update_dchubp_dpp() 1581 ASSERT(pipe_ctx->plane_res.scl_data.lb_params.depth == LB_PIXEL_DEPTH_36BPP); in dcn20_update_dchubp_dpp() 1584 pipe_ctx->plane_res.dpp, &pipe_ctx->plane_res.scl_data); in dcn20_update_dchubp_dpp() 1594 &pipe_ctx->plane_res.scl_data.viewport, in dcn20_update_dchubp_dpp() 1595 &pipe_ctx->plane_res.scl_data.viewport_c); in dcn20_update_dchubp_dpp() 1640 size.surface_size = pipe_ctx->plane_res.scl_data.viewport; in dcn20_update_dchubp_dpp()
|
A D | dcn20_dpp.h | 693 struct scaler_data scl_data; member 746 const struct scaler_data *scl_data,
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce/ |
A D | dce_transform.c | 1166 struct scaler_data *scl_data, in dce_transform_get_optimal_number_of_taps() argument 1174 (scl_data->viewport.width > scl_data->recout.width)) in dce_transform_get_optimal_number_of_taps() 1179 scl_data->lb_params.depth, in dce_transform_get_optimal_number_of_taps() 1195 scl_data->taps.h_taps = decide_taps(scl_data->ratios.horz, in_taps->h_taps, false); in dce_transform_get_optimal_number_of_taps() 1196 scl_data->taps.v_taps = decide_taps(scl_data->ratios.vert, in_taps->v_taps, false); in dce_transform_get_optimal_number_of_taps() 1197 scl_data->taps.h_taps_c = decide_taps(scl_data->ratios.horz_c, in_taps->h_taps, true); in dce_transform_get_optimal_number_of_taps() 1198 scl_data->taps.v_taps_c = decide_taps(scl_data->ratios.vert_c, in_taps->v_taps, true); in dce_transform_get_optimal_number_of_taps() 1204 && scl_data->taps.v_taps > 1) { in dce_transform_get_optimal_number_of_taps() 1208 if (scl_data->taps.v_taps <= 1) in dce_transform_get_optimal_number_of_taps() 1214 if (max_num_of_lines <= scl_data->taps.v_taps_c && scl_data->taps.v_taps_c > 1) { in dce_transform_get_optimal_number_of_taps() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
A D | dcn_calcs.c | 404 input->scale_taps.vtaps = pipe->plane_res.scl_data.taps.v_taps; in pipe_ctx_to_e2e_pipe_params() 412 switch (pipe->plane_res.scl_data.lb_params.depth) { in pipe_ctx_to_e2e_pipe_params() 949 + pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth() 951 + pipe->bottom_pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth() 955 - pipe->bottom_pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth() 958 - pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth() 961 + pipe->plane_res.scl_data.viewport.y; in dcn_validate_bandwidth() 963 + pipe->bottom_pipe->plane_res.scl_data.viewport.y; in dcn_validate_bandwidth() 967 - pipe->bottom_pipe->plane_res.scl_data.viewport.y; in dcn_validate_bandwidth() 970 - pipe->plane_res.scl_data.viewport.y; in dcn_validate_bandwidth() [all …]
|
A D | dce_calcs.c | 2827 data->src_width[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.viewport.width); in populate_initial_data() 2829 data->src_height[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.viewport.height); in populate_initial_data() 2830 data->h_taps[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.taps.h_taps); in populate_initial_data() 2831 data->v_taps[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.taps.v_taps); in populate_initial_data() 2886 …data->h_taps[num_displays * 2 + j] = bw_int_to_fixed(pipe[i].bottom_pipe->plane_res.scl_data.taps.… in populate_initial_data() 2889 pipe[i].bottom_pipe->plane_res.scl_data.ratios.horz.value); in populate_initial_data() 2891 pipe[i].bottom_pipe->plane_res.scl_data.ratios.vert.value); in populate_initial_data() 2930 data->src_width[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.viewport.width); in populate_initial_data() 2932 data->src_height[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.viewport.height); in populate_initial_data() 2933 data->h_taps[num_displays + 4] = bw_int_to_fixed(pipe[i].plane_res.scl_data.taps.h_taps); in populate_initial_data() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_resource.c | 912 pipe_ctx->plane_res.scl_data.ratios.horz_c = pipe_ctx->plane_res.scl_data.ratios.horz; in calculate_scaling_ratios() 913 pipe_ctx->plane_res.scl_data.ratios.vert_c = pipe_ctx->plane_res.scl_data.ratios.vert; in calculate_scaling_ratios() 1196 &pipe_ctx->plane_res.scl_data, in resource_build_scaling_params() 1202 &pipe_ctx->plane_res.scl_data, in resource_build_scaling_params() 1223 pipe_ctx->plane_res.scl_data.recout.y += pipe_ctx->plane_res.scl_data.recout.height; in resource_build_scaling_params() 1225 pipe_ctx->plane_res.scl_data.recout.x += pipe_ctx->plane_res.scl_data.recout.width; in resource_build_scaling_params() 1246 pipe_ctx->plane_res.scl_data.viewport.x, in resource_build_scaling_params() 1250 pipe_ctx->plane_res.scl_data.recout.x, in resource_build_scaling_params() 1251 pipe_ctx->plane_res.scl_data.recout.y, in resource_build_scaling_params() 1252 pipe_ctx->plane_res.scl_data.h_active, in resource_build_scaling_params() [all …]
|
A D | dc_hw_sequencer.c | 320 switch (pipe_ctx->plane_res.scl_data.format) { in get_surface_visual_confirm_color() 377 switch (top_pipe_ctx->plane_res.scl_data.format) { in get_hdr_visual_confirm_color()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce110/ |
A D | dce110_transform_v.c | 48 const struct scaler_data *scl_data, in calculate_viewport() argument 53 luma_viewport->x = scl_data->viewport.x - scl_data->viewport.x % 2; in calculate_viewport() 54 luma_viewport->y = scl_data->viewport.y - scl_data->viewport.y % 2; in calculate_viewport() 56 scl_data->viewport.width - scl_data->viewport.width % 2; in calculate_viewport() 58 scl_data->viewport.height - scl_data->viewport.height % 2; in calculate_viewport() 64 if (scl_data->format == PIXEL_FORMAT_420BPP8) { in calculate_viewport()
|
A D | dce110_hw_sequencer.c | 1382 pipe_ctx->plane_res.scl_data.lb_params.depth, in program_scaler() 1400 &pipe_ctx->plane_res.scl_data); in program_scaler() 2765 pipe_ctx->plane_res.scl_data.viewport.width, in dce110_program_front_end_for_pipe() 2766 pipe_ctx->plane_res.scl_data.viewport.height, in dce110_program_front_end_for_pipe() 2767 pipe_ctx->plane_res.scl_data.viewport.x, in dce110_program_front_end_for_pipe() 2768 pipe_ctx->plane_res.scl_data.viewport.y, in dce110_program_front_end_for_pipe() 2769 pipe_ctx->plane_res.scl_data.recout.width, in dce110_program_front_end_for_pipe() 2770 pipe_ctx->plane_res.scl_data.recout.height, in dce110_program_front_end_for_pipe() 2771 pipe_ctx->plane_res.scl_data.recout.x, in dce110_program_front_end_for_pipe() 2772 pipe_ctx->plane_res.scl_data.recout.y); in dce110_program_front_end_for_pipe() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/hw/ |
A D | transform.h | 186 const struct scaler_data *scl_data); 195 struct scaler_data *scl_data, 300 const struct scaler_data *scl_data,
|
A D | dpp.h | 169 const struct scaler_data *scl_data); 178 struct scaler_data *scl_data,
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/amdgpu_dm/ |
A D | amdgpu_dm_trace.h | 439 __entry->recout_x = plane_res->scl_data.recout.x; 440 __entry->recout_y = plane_res->scl_data.recout.y; 441 __entry->recout_w = plane_res->scl_data.recout.width; 442 __entry->recout_h = plane_res->scl_data.recout.height; 443 __entry->viewport_x = plane_res->scl_data.viewport.x; 444 __entry->viewport_y = plane_res->scl_data.viewport.y; 445 __entry->viewport_w = plane_res->scl_data.viewport.width; 446 __entry->viewport_h = plane_res->scl_data.viewport.height;
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/ |
A D | dc_dmub_srv.c | 874 const struct scaler_data *scl_data = &pipe_ctx->plane_res.scl_data; in dc_can_pipe_disable_cursor() local 875 struct rect r1 = scl_data->recout, r2, r2_half; in dc_can_pipe_disable_cursor() 890 r2 = test_pipe->plane_res.scl_data.recout; in dc_can_pipe_disable_cursor() 902 r2_half = split_pipe->plane_res.scl_data.recout; in dc_can_pipe_disable_cursor()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/ |
A D | core_types.h | 340 struct scaler_data scl_data; member
|