Home
last modified time | relevance | path

Searched refs:src_rect (Results 1 – 25 of 27) sorted by relevance

12

/openbsd-src/sys/dev/pci/drm/amd/display/dc/core/
H A Ddc_debug.c103 plane_state->src_rect.x, in pre_surface_trace()
104 plane_state->src_rect.y, in pre_surface_trace()
105 plane_state->src_rect.width, in pre_surface_trace()
106 plane_state->src_rect.height, in pre_surface_trace()
277 update->scaling_info->src_rect.x, in update_surface_trace()
278 update->scaling_info->src_rect.y, in update_surface_trace()
279 update->scaling_info->src_rect.width, in update_surface_trace()
280 update->scaling_info->src_rect.height, in update_surface_trace()
H A Damdgpu_dc.c2471 && (u->scaling_info->dst_rect.width < u->surface->src_rect.width in get_scaling_info_update_type()
2472 || u->scaling_info->dst_rect.height < u->surface->src_rect.height)) in get_scaling_info_update_type()
2477 if (u->scaling_info->src_rect.width != u->surface->src_rect.width in get_scaling_info_update_type()
2478 || u->scaling_info->src_rect.height != u->surface->src_rect.height) { in get_scaling_info_update_type()
2481 if (u->scaling_info->src_rect.width > u->surface->src_rect.width in get_scaling_info_update_type()
2482 || u->scaling_info->src_rect.height > u->surface->src_rect in get_scaling_info_update_type()
[all...]
H A Ddc_resource.c1180 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios()
1296 struct rect src = plane_state->src_rect; in calculate_inits_and_viewports()
1399 !plane_state->src_rect.width || in resource_build_scaling_params()
1400 !plane_state->src_rect.height) { in resource_build_scaling_params()
1509 "src_rect: height:%d width:%d x:%d y:%d dst_rect: height:%d width:%d x:%d y:%d clip_rect: height:%d width:%d x:%d y:%d\n", in resource_build_scaling_params()
1522 plane_state->src_rect.height, in resource_build_scaling_params()
1523 plane_state->src_rect.width, in resource_build_scaling_params()
1524 plane_state->src_rect.x, in resource_build_scaling_params()
1525 plane_state->src_rect.y, in resource_build_scaling_params()
3968 if (plane_state->src_rect in dc_validate_plane()
[all...]
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dml/dcn314/
H A Ddcn314_fpu.c351 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn314_populate_dml_pipes_from_context_fpu()
352 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn314_populate_dml_pipes_from_context_fpu()
398 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn314_populate_dml_pipes_from_context_fpu()
400 …} else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120)… in dcn314_populate_dml_pipes_from_context_fpu()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dce60/
H A Ddce60_hw_sequencer.c353 pipe_ctx->plane_state->src_rect.x, in dce60_program_front_end_for_pipe()
354 pipe_ctx->plane_state->src_rect.y, in dce60_program_front_end_for_pipe()
355 pipe_ctx->plane_state->src_rect.width, in dce60_program_front_end_for_pipe()
356 pipe_ctx->plane_state->src_rect.height, in dce60_program_front_end_for_pipe()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn32/
H A Ddcn32_resource_helpers.c240 pipe->stream->timing.v_addressable != pipe->plane_state->src_rect.height) { in dcn32_is_center_timing()
378 if (pipe->plane_state->src_rect.width >= 5120 && in dcn32_set_det_allocations()
379 pipe->plane_state->src_rect.height >= 2880) in dcn32_set_det_allocations()
613 pipe->plane_state->src_rect.width == width && in dcn32_check_native_scaling_for_res()
614 pipe->plane_state->src_rect.height == height && in dcn32_check_native_scaling_for_res()
H A Ddcn32_hwseq.c1367 phantom_plane->src_rect.x = pipe->plane_state->src_rect.x; in dcn32_update_phantom_vp_position()
1368 phantom_plane->src_rect.y = pipe->plane_state->src_rect.y; in dcn32_update_phantom_vp_position()
H A Ddcn32_resource.c1651 memcpy(&phantom_plane->src_rect, &curr_pipe->plane_state->src_rect, sizeof(phantom_plane->src_rect)); in dcn32_enable_phantom_plane()
/openbsd-src/sys/dev/pci/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_plane.c1061 scaling_info->src_rect.x = state->src_x >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1062 scaling_info->src_rect.y = state->src_y >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1079 (scaling_info->src_rect.x != 0 || scaling_info->src_rect.y != 0))) in amdgpu_dm_plane_fill_dc_scaling_info()
1082 scaling_info->src_rect.width = state->src_w >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1083 if (scaling_info->src_rect.width == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1086 scaling_info->src_rect.height = state->src_h >> 16; in amdgpu_dm_plane_fill_dc_scaling_info()
1087 if (scaling_info->src_rect.height == 0) in amdgpu_dm_plane_fill_dc_scaling_info()
1116 scaling_info->src_rect.width; in amdgpu_dm_plane_fill_dc_scaling_info()
1122 scaling_info->src_rect in amdgpu_dm_plane_fill_dc_scaling_info()
[all...]
H A Damdgpu_dm_trace.h431 __entry->src_x = plane_state->src_rect.x;
432 __entry->src_y = plane_state->src_rect.y;
433 __entry->src_w = plane_state->src_rect.width;
434 __entry->src_h = plane_state->src_rect.height;
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn315/
H A Ddcn315_resource.c1646 (res_ctx->pipe_ctx[i].plane_state && (res_ctx->pipe_ctx[i].plane_state->src_rect.width in allow_pixel_rate_crb()
1648 res_ctx->pipe_ctx[i].plane_state->src_rect.height in allow_pixel_rate_crb()
1704 split_required = split_required || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1754 || (pipe->plane_state && pipe->plane_state->src_rect.width > 5120); in dcn315_populate_dml_pipes_from_context()
1787 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn315_populate_dml_pipes_from_context()
1792 && pipe->plane_state->src_rect.width <= 5120 in dcn315_populate_dml_pipes_from_context()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn10/
H A Ddcn10_resource.c1154 && plane_state->src_rect.width > caps->max_video_width) in dcn10_validate_plane()
1186 if (plane->src_rect.width > plane->dst_rect.width || in dcn10_validate_global()
1187 plane->src_rect.height > plane->dst_rect.height) in dcn10_validate_global()
1190 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
1194 if (plane->src_rect.width >= 3840) in dcn10_validate_global()
H A Ddcn10_hw_sequencer.c3427 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()
3451 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3453 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3456 x_pos = (x_pos - x_plane) * pipe_ctx->plane_state->src_rect.width / in dcn10_set_cursor_position()
3458 y_pos = (y_pos - y_plane) * pipe_ctx->plane_state->src_rect.height / in dcn10_set_cursor_position()
3475 x_pos += pipe_ctx->plane_state->src_rect.x; in dcn10_set_cursor_position()
3476 y_pos += pipe_ctx->plane_state->src_rect.y; in dcn10_set_cursor_position()
3523 pipe_ctx->plane_state->src_rect.x) { in dcn10_set_cursor_position()
3616 pipe_ctx->plane_state->src_rect in dcn10_set_cursor_position()
[all...]
/openbsd-src/sys/dev/pci/drm/apple/
H A Diomfb_template.h28 struct dcp_rect src_rect[SWAP_SURFACES]; in DCP_FW_NAME() local
H A Diomfb_template.c1293 struct drm_rect src_rect; in DCP_FW_NAME() local
1341 drm_rect_fp_to_int(&src_rect, &new_state->src); in DCP_FW_NAME()
1343 req->swap.src_rect[l] = drm_to_dcp_rect(&src_rect); in DCP_FW_NAME()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dce110/
H A Ddce110_resource.c1040 if (((plane_state->dst_rect.width * 2) < plane_state->src_rect.width) || in dce110_validate_plane()
1041 ((plane_state->dst_rect.height * 2) < plane_state->src_rect.height)) in dce110_validate_plane()
1066 if ((plane->src_rect.width > 1920 || in dce110_validate_surface_sets()
1067 plane->src_rect.height > 1080)) in dce110_validate_surface_sets()
H A Ddce110_hw_sequencer.c2771 pipe_ctx->plane_state->src_rect.x, in dce110_program_front_end_for_pipe()
2772 pipe_ctx->plane_state->src_rect.y, in dce110_program_front_end_for_pipe()
2773 pipe_ctx->plane_state->src_rect.width, in dce110_program_front_end_for_pipe()
2774 pipe_ctx->plane_state->src_rect.height, in dce110_program_front_end_for_pipe()
2920 pos_cpy.x += pipe_ctx->plane_state->src_rect.x; in dce110_set_cursor_position()
2921 pos_cpy.y += pipe_ctx->plane_state->src_rect.y; in dce110_set_cursor_position()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn31/
H A Ddcn31_resource.c1662 (pipe->plane_state->src_rect.height < pipe->plane_state->dst_rect.height || in dcn31_populate_dml_pipes_from_context()
1663 pipe->plane_state->src_rect.width < pipe->plane_state->dst_rect.width)) in dcn31_populate_dml_pipes_from_context()
1705 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn31_populate_dml_pipes_from_context()
1707 } else if (!is_dual_plane(pipe->plane_state->format) && pipe->plane_state->src_rect.width <= 5120) { in dcn31_populate_dml_pipes_from_context()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/
H A Ddc.h1199 struct rect src_rect; member
1280 struct rect src_rect; member
H A Ddc_dmub_srv.c658 reduce_fraction(subvp_pipe->plane_state->src_rect.height, subvp_pipe->plane_state->dst_rect.height, in populate_subvp_cmd_pipe_info()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn316/
H A Ddcn316_resource.c1677 && pipe->plane_state->src_rect.width <= 1920 && pipe->plane_state->src_rect.height <= 1080) { in dcn316_populate_dml_pipes_from_context()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dml/calcs/
H A Ddcn_calcs.c720 pipe->plane_state->src_rect.width <= 16 || in hack_bounding_box()
721 pipe->plane_state->src_rect.height <= 16)) { in hack_bounding_box()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn20/
H A Ddcn20_resource.c1861 pipe->plane_state->src_rect.width <= 16 || in dcn20_validate_apply_pipe_split_flags()
1862 pipe->plane_state->src_rect.height <= 16)) in dcn20_validate_apply_pipe_split_flags()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dcn21/
H A Ddcn21_resource.c1376 plane_state->dcc.meta_pitch = ((plane_state->src_rect.width + 1023) / 1024) * 1024; in dcn21_patch_unknown_plane_state()
/openbsd-src/sys/dev/pci/drm/amd/display/dc/dml/dcn20/
H A Ddcn20_fpu.c1622 pipes[pipe_cnt].pipe.src.viewport_width_max = pln->src_rect.width; in dcn20_populate_dml_pipes_from_context()
1623 pipes[pipe_cnt].pipe.src.viewport_height_max = pln->src_rect.height; in dcn20_populate_dml_pipes_from_context()

12