Home
last modified time | relevance | path

Searched refs:viewport (Results 1 - 25 of 66) sorted by relevance

123

/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_dpp.c43 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()
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_dpp.c144 if (scl_data->viewport.width > scl_data->h_active && in dpp1_get_optimal_number_of_taps()
146 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp1_get_optimal_number_of_taps()
445 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in dpp1_set_cursor_position()
446 int src_y_offset = pos->y - pos->y_hotspot - param->viewport.y; in dpp1_set_cursor_position()
453 src_x_offset = pos->x - pos->y_hotspot - param->viewport.x; in dpp1_set_cursor_position()
454 src_y_offset = pos->y - pos->x_hotspot - param->viewport.y; in dpp1_set_cursor_position()
457 src_x_offset = pos->x - param->viewport.x; in dpp1_set_cursor_position()
458 src_y_offset = pos->y - param->viewport.y; in dpp1_set_cursor_position()
462 if (src_x_offset >= (int)param->viewport.width) in dpp1_set_cursor_position()
468 if (src_y_offset >= (int)param->viewport in dpp1_set_cursor_position()
[all...]
H A Ddcn10_hubp.c827 const struct rect *viewport, in min_set_viewport()
833 PRI_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
834 PRI_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
837 PRI_VIEWPORT_X_START, viewport->x, in min_set_viewport()
838 PRI_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
842 SEC_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
843 SEC_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
846 SEC_VIEWPORT_X_START, viewport->x, in min_set_viewport()
847 SEC_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
1153 int src_x_offset = pos->x - pos->x_hotspot - param->viewport in hubp1_cursor_set_position()
825 min_set_viewport( struct hubp *hubp, const struct rect *viewport, const struct rect *viewport_c) min_set_viewport() argument
[all...]
H A Ddcn10_hw_sequencer.c1734 * the case where the viewport changes in the same frame as the cursor.
2163 "viewport:%d, %d, %d, %d\n" in dcn10_enable_plane()
2167 pipe_ctx->plane_res.scl_data.viewport.width, in dcn10_enable_plane()
2168 pipe_ctx->plane_res.scl_data.viewport.height, in dcn10_enable_plane()
2169 pipe_ctx->plane_res.scl_data.viewport.x, in dcn10_enable_plane()
2170 pipe_ctx->plane_res.scl_data.viewport.y, in dcn10_enable_plane()
2555 size.surface_size = pipe_ctx->plane_res.scl_data.viewport; in dcn10_update_dchubp_dpp()
2579 &pipe_ctx->plane_res.scl_data.viewport, in dcn10_update_dchubp_dpp()
2808 if (memcmp(&old_pipe->plane_res.scl_data.viewport, &new_pipe->plane_res.scl_data.viewport, sizeo in dcn10_disconnect_pipes()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c720 data->viewport.x = surf_src.x + (clip.x - dest.x) * surf_src.width / dest.width; in calculate_viewport()
721 data->viewport.width = clip.width * surf_src.width / dest.width; in calculate_viewport()
723 data->viewport.y = surf_src.y + (clip.y - dest.y) * surf_src.height / dest.height; in calculate_viewport()
724 data->viewport.height = clip.height * surf_src.height / dest.height; in calculate_viewport()
737 epimo = split_count - data->viewport.height % (split_count + 1); in calculate_viewport()
739 data->viewport.y += (data->viewport.height / (split_count + 1)) * split_idx; in calculate_viewport()
741 data->viewport.y += split_idx - epimo - 1; in calculate_viewport()
742 data->viewport.height = data->viewport in calculate_viewport()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_transform_v.c55 luma_viewport->x = scl_data->viewport.x - scl_data->viewport.x % 2; in calculate_viewport()
56 luma_viewport->y = scl_data->viewport.y - scl_data->viewport.y % 2; in calculate_viewport()
58 scl_data->viewport.width - scl_data->viewport.width % 2; in calculate_viewport()
60 scl_data->viewport.height - scl_data->viewport.height % 2; in calculate_viewport()
536 /* 1. Calculate viewport, viewport programmin in dce110_xfmv_set_scaler()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_transform_v.c53 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()
533 /* 1. Calculate viewport, viewport programmin in dce110_xfmv_set_scaler()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_dpp.c136 if (scl_data->viewport.width > scl_data->h_active && in dpp1_get_optimal_number_of_taps()
138 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp1_get_optimal_number_of_taps()
439 int x_pos = pos->x - param->viewport.x; in dpp1_set_cursor_position()
440 int y_pos = pos->y - param->viewport.y; in dpp1_set_cursor_position()
471 if (src_x_offset >= (int)param->viewport.width) in dpp1_set_cursor_position()
477 if (src_y_offset >= (int)param->viewport.height) in dpp1_set_cursor_position()
H A Ddcn10_hubp.c827 const struct rect *viewport, in min_set_viewport()
833 PRI_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
834 PRI_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
837 PRI_VIEWPORT_X_START, viewport->x, in min_set_viewport()
838 PRI_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
842 SEC_VIEWPORT_WIDTH, viewport->width, in min_set_viewport()
843 SEC_VIEWPORT_HEIGHT, viewport->height); in min_set_viewport()
846 SEC_VIEWPORT_X_START, viewport->x, in min_set_viewport()
847 SEC_VIEWPORT_Y_START, viewport->y); in min_set_viewport()
1182 int x_pos = pos->x - param->viewport in hubp1_cursor_set_position()
825 min_set_viewport( struct hubp *hubp, const struct rect *viewport, const struct rect *viewport_c) min_set_viewport() argument
[all...]
H A Ddcn10_hw_sequencer.c1900 * the case where the viewport changes in the same frame as the cursor.
2778 size.surface_size = pipe_ctx->plane_res.scl_data.viewport; in dcn10_update_dchubp_dpp()
2802 &pipe_ctx->plane_res.scl_data.viewport, in dcn10_update_dchubp_dpp()
3365 * plane that contains this pipe's viewport to prevent double cursor in dcn10_can_pipe_disable_cursor()
3410 .viewport = pipe_ctx->plane_res.scl_data.viewport, in dcn10_set_cursor_position()
3427 if ((pipe_ctx->plane_state->src_rect.width != pipe_ctx->plane_res.scl_data.viewport.width) || in dcn10_set_cursor_position()
3428 (pipe_ctx->plane_state->src_rect.height != pipe_ctx->plane_res.scl_data.viewport.height)) { in dcn10_set_cursor_position()
3463 * If the cursor's source viewport is clipped then we need to in dcn10_set_cursor_position()
3507 pipe_ctx->plane_res.scl_data.viewport in dcn10_set_cursor_position()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn201/
H A Ddcn201_dpp.c188 if (scl_data->viewport.width != scl_data->h_active && in dpp201_get_optimal_number_of_taps()
189 scl_data->viewport.height != scl_data->v_active && in dpp201_get_optimal_number_of_taps()
194 if (scl_data->viewport.width > scl_data->h_active && in dpp201_get_optimal_number_of_taps()
196 scl_data->viewport.width > dpp->ctx->dc->debug.max_downscale_src_width) in dpp201_get_optimal_number_of_taps()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/calcs/
H A Ddcn_calcs.c340 input->src.viewport_width = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
341 input->src.viewport_height = pipe->plane_res.scl_data.viewport.height; in pipe_ctx_to_e2e_pipe_params()
342 input->src.data_pitch = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
343 input->src.data_pitch_c = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
957 v->viewport_height[input_idx] = pipe->plane_res.scl_data.viewport.height; in dcn_validate_bandwidth()
958 v->viewport_width[input_idx] = pipe->plane_res.scl_data.viewport.width; in dcn_validate_bandwidth()
963 int viewport_end = pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
964 + pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
965 int viewport_b_end = pipe->bottom_pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
966 + pipe->bottom_pipe->plane_res.scl_data.viewport in dcn_validate_bandwidth()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dml/calcs/
H A Ddcn_calcs.c341 input->src.viewport_width = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
342 input->src.viewport_height = pipe->plane_res.scl_data.viewport.height; in pipe_ctx_to_e2e_pipe_params()
343 input->src.data_pitch = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
344 input->src.data_pitch_c = pipe->plane_res.scl_data.viewport.width; in pipe_ctx_to_e2e_pipe_params()
942 v->viewport_height[input_idx] = pipe->plane_res.scl_data.viewport.height; in dcn_validate_bandwidth()
943 v->viewport_width[input_idx] = pipe->plane_res.scl_data.viewport.width; in dcn_validate_bandwidth()
948 int viewport_end = pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
949 + pipe->plane_res.scl_data.viewport.x; in dcn_validate_bandwidth()
950 int viewport_b_end = pipe->bottom_pipe->plane_res.scl_data.viewport.width in dcn_validate_bandwidth()
951 + pipe->bottom_pipe->plane_res.scl_data.viewport in dcn_validate_bandwidth()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c803 data->viewport.width = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.horz, data->recout.width)); in calculate_viewport_size()
804 data->viewport.height = dc_fixpt_ceil(dc_fixpt_mul_int(data->ratios.vert, data->recout.height)); in calculate_viewport_size()
809 swap(data->viewport.width, data->viewport.height); in calculate_viewport_size()
1261 * If viewport has non 0 offset and there are more taps than covered by init then in calculate_init_and_vp()
1263 * outside of viewport. in calculate_init_and_vp()
1274 * If taps are sampling outside of viewport at end of recout and there are more pixels in calculate_init_and_vp()
1275 * available in the surface we should increase the viewport size, regardless set vp to in calculate_init_and_vp()
1286 * Note that outside of viewport all scaling hardware works in recout space. in calculate_init_and_vp()
1343 &data->viewport in calculate_inits_and_viewports()
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn21/
H A Ddcn21_hubp.c188 const struct rect *viewport, in hubp21_set_viewport()
194 PRI_VIEWPORT_WIDTH, viewport->width, in hubp21_set_viewport()
195 PRI_VIEWPORT_HEIGHT, viewport->height); in hubp21_set_viewport()
198 PRI_VIEWPORT_X_START, viewport->x, in hubp21_set_viewport()
199 PRI_VIEWPORT_Y_START, viewport->y); in hubp21_set_viewport()
203 SEC_VIEWPORT_WIDTH, viewport->width, in hubp21_set_viewport()
204 SEC_VIEWPORT_HEIGHT, viewport->height); in hubp21_set_viewport()
207 SEC_VIEWPORT_X_START, viewport->x, in hubp21_set_viewport()
208 SEC_VIEWPORT_Y_START, viewport->y); in hubp21_set_viewport()
186 hubp21_set_viewport( struct hubp *hubp, const struct rect *viewport, const struct rect *viewport_c) hubp21_set_viewport() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn21/
H A Ddcn21_hubp.c188 const struct rect *viewport, in hubp21_set_viewport()
194 PRI_VIEWPORT_WIDTH, viewport->width, in hubp21_set_viewport()
195 PRI_VIEWPORT_HEIGHT, viewport->height); in hubp21_set_viewport()
198 PRI_VIEWPORT_X_START, viewport->x, in hubp21_set_viewport()
199 PRI_VIEWPORT_Y_START, viewport->y); in hubp21_set_viewport()
203 SEC_VIEWPORT_WIDTH, viewport->width, in hubp21_set_viewport()
204 SEC_VIEWPORT_HEIGHT, viewport->height); in hubp21_set_viewport()
207 SEC_VIEWPORT_X_START, viewport->x, in hubp21_set_viewport()
208 SEC_VIEWPORT_Y_START, viewport->y); in hubp21_set_viewport()
186 hubp21_set_viewport( struct hubp *hubp, const struct rect *viewport, const struct rect *viewport_c) hubp21_set_viewport() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce60/
H A Ddce60_hw_sequencer.c368 "viewport:%d, %d, %d, %d\n" in dce60_program_front_end_for_pipe()
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()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce60/
H A Ddce60_hw_sequencer.c368 "viewport:%d, %d, %d, %d\n" in dce60_program_front_end_for_pipe()
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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_hubp.c970 int src_x_offset = pos->x - pos->x_hotspot - param->viewport.x; in hubp2_cursor_set_position()
971 int src_y_offset = pos->y - pos->y_hotspot - param->viewport.y; in hubp2_cursor_set_position()
993 src_x_offset = pos->x - pos->y_hotspot - param->viewport.x; in hubp2_cursor_set_position()
994 src_y_offset = pos->y - pos->x_hotspot - param->viewport.y; in hubp2_cursor_set_position()
997 src_x_offset = pos->x - param->viewport.x; in hubp2_cursor_set_position()
998 src_y_offset = pos->y - param->viewport.y; in hubp2_cursor_set_position()
1002 x_hotspot = param->viewport.width - x_hotspot; in hubp2_cursor_set_position()
1003 src_x_offset = param->viewport.x + param->viewport.width - src_x_offset; in hubp2_cursor_set_position()
1017 if (src_x_offset >= (int)param->viewport in hubp2_cursor_set_position()
[all...]
H A Ddcn20_dpp.c277 int line_size = scl_data->viewport.width < scl_data->recout.width ? in dscl2_calc_lb_num_partitions()
278 scl_data->viewport.width : scl_data->recout.width; in dscl2_calc_lb_num_partitions()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
H A Dgmc_v9_0.c1086 u32 viewport; in gmc_v9_0_get_vbios_fb_size() local
1091 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v9_0_get_vbios_fb_size()
1092 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1094 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1102 viewport = RREG32_SOC15(DCE, 0, mmSCL0_VIEWPORT_SIZE); in gmc_v9_0_get_vbios_fb_size()
1103 size = (REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v9_0_get_vbios_fb_size()
1104 REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_WIDTH) * in gmc_v9_0_get_vbios_fb_size()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
H A Dgmc_v9_0.c1384 u32 viewport; in gmc_v9_0_get_vbios_fb_size() local
1389 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION); in gmc_v9_0_get_vbios_fb_size()
1390 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1392 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1397 viewport = RREG32_SOC15(DCE, 0, mmHUBP0_DCSURF_PRI_VIEWPORT_DIMENSION_DCN2); in gmc_v9_0_get_vbios_fb_size()
1398 size = (REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1400 REG_GET_FIELD(viewport, in gmc_v9_0_get_vbios_fb_size()
1405 viewport = RREG32_SOC15(DCE, 0, mmSCL0_VIEWPORT_SIZE); in gmc_v9_0_get_vbios_fb_size()
1406 size = (REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZE, VIEWPORT_HEIGHT) * in gmc_v9_0_get_vbios_fb_size()
1407 REG_GET_FIELD(viewport, SCL0_VIEWPORT_SIZ in gmc_v9_0_get_vbios_fb_size()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_dpp.c267 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dhubp.h108 const struct rect *viewport,
H A Dmem_input.h103 const struct rect *viewport,

Completed in 33 milliseconds

123