/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_surface.c | 40 plane_state->ctx = ctx; in dc_plane_construct() 88 plane_state->blend_tf); in dc_plane_destruct() 106 struct dc_plane_state *plane_state = kvzalloc(sizeof(*plane_state), in dc_create_plane_state() local 109 if (NULL == plane_state) in dc_create_plane_state() 115 return plane_state; in dc_create_plane_state() 136 if (!plane_state || in dc_plane_get_status() 137 !plane_state->ctx || in dc_plane_get_status() 138 !plane_state->ctx->dc) { in dc_plane_get_status() 154 if (pipe_ctx->plane_state != plane_state) in dc_plane_get_status() 166 if (pipe_ctx->plane_state != plane_state) in dc_plane_get_status() [all …]
|
A D | dc_debug.c | 80 plane_state->visible, in pre_surface_trace() 82 plane_state->address.type, in pre_surface_trace() 103 plane_state->src_rect.x, in pre_surface_trace() 104 plane_state->src_rect.y, in pre_surface_trace() 107 plane_state->dst_rect.x, in pre_surface_trace() 108 plane_state->dst_rect.y, in pre_surface_trace() 111 plane_state->clip_rect.x, in pre_surface_trace() 112 plane_state->clip_rect.y, in pre_surface_trace() 164 plane_state->dcc.enable, in pre_surface_trace() 165 plane_state->format, in pre_surface_trace() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/i915/display/ |
A D | intel_cursor.c | 101 plane_state, 0); in intel_cursor_check_surface() 154 plane_state->uapi.src = src; in intel_check_cursor() 155 plane_state->uapi.dst = dst; in intel_check_cursor() 252 plane_state->ctl = i845_cursor_ctl(crtc_state, plane_state); in i845_check_cursor() 265 if (plane_state && plane_state->uapi.visible) { in i845_cursor_update_arm() 269 cntl = plane_state->ctl | in i845_cursor_update_arm() 477 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor() 483 plane_state->ctl = i9xx_cursor_ctl(crtc_state, plane_state); in i9xx_check_cursor() 497 if (plane_state && plane_state->uapi.visible) { in i9xx_cursor_update_arm() 501 cntl = plane_state->ctl | in i9xx_cursor_update_arm() [all …]
|
A D | skl_universal_plane.c | 983 if (plane_state->force_black) in glk_plane_color_ctl() 1018 if (plane_state->decrypt) in skl_plane_surf() 1099 if (plane_state->planar_linked_plane && !plane_state->planar_slave) in icl_plane_color_plane() 1247 plane_state->cus_ctl); in icl_plane_update_noarm() 1541 plane_state, in skl_check_main_ccs_coordinates() 1718 plane_state, in skl_check_nv12_aux_surface() 1729 plane_state, in skl_check_nv12_aux_surface() 1782 plane_state, in skl_check_ccs_aux_surface() 1912 plane_state->ctl = skl_plane_ctl(crtc_state, plane_state); in skl_plane_check() 1916 plane_state); in skl_plane_check() [all …]
|
A D | intel_sprite.c | 464 chv_sprite_update_csc(plane_state); in vlv_sprite_update_arm() 490 vlv_sprite_update_clrc(plane_state); in vlv_sprite_update_arm() 491 vlv_sprite_update_gamma(plane_state); in vlv_sprite_update_arm() 971 &plane_state->uapi.dst, in g4x_sprite_min_cdclk() 1381 if (!plane_state->uapi.visible) in g4x_sprite_check() 1393 plane_state->ctl = ivb_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check() 1395 plane_state->ctl = g4x_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check() 1439 if (!plane_state->uapi.visible) in vlv_sprite_check() 1446 plane_state->ctl = vlv_sprite_ctl(crtc_state, plane_state); in vlv_sprite_check() 1488 struct drm_plane_state *plane_state; in intel_sprite_set_colorkey_ioctl() local [all …]
|
A D | intel_atomic_plane.c | 53 memset(plane_state, 0, sizeof(*plane_state)); in intel_plane_state_reset() 57 plane_state->scaler_id = -1; in intel_plane_state_reset() 69 plane_state = kzalloc(sizeof(*plane_state), GFP_KERNEL); in intel_plane_alloc() 70 if (!plane_state) { in intel_plane_alloc() 139 if (plane_state->hw.fb) in intel_plane_destroy_state() 141 kfree(plane_state); in intel_plane_destroy_state() 179 &plane_state->uapi.dst, in intel_plane_pixel_rate() 309 if (plane_state->hw.fb) in intel_plane_clear_hw_state() 312 memset(&plane_state->hw, 0, sizeof(plane_state->hw)); in intel_plane_clear_hw_state() 330 if (plane_state->hw.fb) in intel_plane_copy_uapi_to_hw_state() [all …]
|
A D | intel_fbc.c | 981 WARN_ON(plane_state->no_fbc_reason); in intel_fbc_update_state() 992 !plane_state->ggtt_vma->fence); in intel_fbc_update_state() 995 plane_state->ggtt_vma->fence) in intel_fbc_update_state() 1023 plane_state->ggtt_vma->fence); in intel_fbc_is_fence_ok() 1039 intel_fbc_is_cfb_ok(plane_state); in intel_fbc_is_ok() 1066 if (!plane_state->uapi.visible) { in intel_fbc_check_plane() 1106 if (!tiling_is_valid(plane_state)) { in intel_fbc_check_plane() 1116 if (!stride_is_valid(plane_state)) { in intel_fbc_check_plane() 1165 plane_state->no_fbc_reason = NULL; in intel_fbc_check_plane() 1440 if (intel_fbc_is_ok(plane_state)) { in __intel_fbc_enable() [all …]
|
A D | intel_plane_initial.c | 27 struct intel_plane_state *plane_state = in intel_reuse_initial_plane_obj() local 33 if (!plane_state->ggtt_vma) in intel_reuse_initial_plane_obj() 37 *fb = plane_state->hw.fb; in intel_reuse_initial_plane_obj() 38 *vma = plane_state->ggtt_vma; in intel_reuse_initial_plane_obj() 256 plane_state->uapi.rotation, &plane_state->view); in intel_find_initial_plane_obj() 264 plane_state->uapi.src_x = 0; in intel_find_initial_plane_obj() 265 plane_state->uapi.src_y = 0; in intel_find_initial_plane_obj() 269 plane_state->uapi.crtc_x = 0; in intel_find_initial_plane_obj() 270 plane_state->uapi.crtc_y = 0; in intel_find_initial_plane_obj() 277 plane_state->uapi.fb = fb; in intel_find_initial_plane_obj() [all …]
|
A D | i9xx_plane.c | 155 to_i915(plane_state->uapi.plane->dev); in i9xx_plane_ctl() 227 to_i915(plane_state->uapi.plane->dev); in i9xx_check_plane_surface() 237 if (!plane_state->uapi.visible) in i9xx_check_plane_surface() 241 src_x = plane_state->uapi.src.x1 >> 16; in i9xx_check_plane_surface() 242 src_y = plane_state->uapi.src.y1 >> 16; in i9xx_check_plane_surface() 252 plane_state, 0); in i9xx_check_plane_surface() 340 if (!plane_state->uapi.visible) in i9xx_plane_check() 347 plane_state->ctl = i9xx_plane_ctl(crtc_state, plane_state); in i9xx_plane_check() 428 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_noarm() 429 int crtc_y = plane_state->uapi.dst.y1; in i9xx_plane_update_noarm() [all …]
|
A D | intel_atomic_plane.h | 25 const struct intel_plane_state *plane_state); 28 const struct intel_plane_state *plane_state, 30 void intel_plane_copy_uapi_to_hw_state(struct intel_plane_state *plane_state, 33 void intel_plane_copy_hw_state(struct intel_plane_state *plane_state, 37 const struct intel_plane_state *plane_state); 40 const struct intel_plane_state *plane_state); 61 int intel_atomic_plane_check_clipping(struct intel_plane_state *plane_state, 66 struct intel_plane_state *plane_state);
|
A D | skl_scaler.c | 254 to_intel_plane(plane_state->uapi.plane); in skl_update_scaler_plane() 268 &plane_state->scaler_id, in skl_update_scaler_plane() 271 drm_rect_width(&plane_state->uapi.dst), in skl_update_scaler_plane() 277 if (ret || plane_state->scaler_id < 0) in skl_update_scaler_plane() 281 if (plane_state->ckey.flags) { in skl_update_scaler_plane() 496 int scaler_id = plane_state->scaler_id; in skl_program_plane_scaler() 499 int crtc_x = plane_state->uapi.dst.x1; in skl_program_plane_scaler() 500 int crtc_y = plane_state->uapi.dst.y1; in skl_program_plane_scaler() 509 &plane_state->uapi.dst, in skl_program_plane_scaler() 512 &plane_state->uapi.dst, in skl_program_plane_scaler() [all …]
|
A D | intel_fb_pin.c | 238 int intel_plane_pin_fb(struct intel_plane_state *plane_state) in intel_plane_pin_fb() argument 242 struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_pin_fb() 250 &plane_state->view.gtt, in intel_plane_pin_fb() 251 intel_plane_uses_fence(plane_state), in intel_plane_pin_fb() 252 &plane_state->flags); in intel_plane_pin_fb() 256 plane_state->ggtt_vma = vma; in intel_plane_pin_fb() 264 plane_state->ggtt_vma = vma; in intel_plane_pin_fb() 267 &plane_state->flags, intel_fb->dpt_vm); in intel_plane_pin_fb() 270 plane_state->ggtt_vma = NULL; in intel_plane_pin_fb() 274 plane_state->dpt_vma = vma; in intel_plane_pin_fb() [all …]
|
A D | intel_sprite.h | 33 int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state); 34 int chv_plane_check_rotation(const struct intel_plane_state *plane_state); 37 const struct intel_plane_state *plane_state); 39 const struct intel_plane_state *plane_state); 41 const struct intel_plane_state *plane_state);
|
A D | intel_atomic.c | 317 struct intel_plane_state *plane_state, in intel_atomic_setup_scaler() argument 341 if (plane_state && plane_state->hw.fb && in intel_atomic_setup_scaler() 342 plane_state->hw.fb->format->is_yuv && in intel_atomic_setup_scaler() 343 plane_state->hw.fb->format->num_planes > 1) { in intel_atomic_setup_scaler() 356 plane_state->planar_linked_plane; in intel_atomic_setup_scaler() 383 if (plane_state && plane_state->hw.fb) { in intel_atomic_setup_scaler() 385 const struct drm_rect *src = &plane_state->uapi.src; in intel_atomic_setup_scaler() 386 const struct drm_rect *dst = &plane_state->uapi.dst; in intel_atomic_setup_scaler() 469 struct intel_plane_state *plane_state = NULL; in intel_atomic_setup_scalers() local 557 scaler_id = &plane_state->scaler_id; in intel_atomic_setup_scalers() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce60/ |
A D | dce60_hw_sequencer.c | 101 if (!pipe_ctx->plane_state) in dce60_should_enable_fbc() 188 if (!pipe_ctx->plane_state->visible) in dce60_program_surface_visibility() 274 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dce60_program_front_end_for_pipe() local 318 plane_state->format, in dce60_program_front_end_for_pipe() 319 &plane_state->tiling_info, in dce60_program_front_end_for_pipe() 320 &plane_state->plane_size, in dce60_program_front_end_for_pipe() 321 plane_state->rotation, in dce60_program_front_end_for_pipe() 330 plane_state->format, in dce60_program_front_end_for_pipe() 331 &plane_state->tiling_info, in dce60_program_front_end_for_pipe() 332 plane_state->rotation); in dce60_program_front_end_for_pipe() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/basics/ |
A D | dc_common.c | 54 if (pipe_ctx->plane_state && pipe_ctx->plane_state->visible) in is_lower_pipe_tree_visible() 63 if (pipe_ctx->plane_state && pipe_ctx->plane_state->visible) in is_upper_pipe_tree_visible() 72 if (pipe_ctx->plane_state && pipe_ctx->plane_state->visible) in is_pipe_tree_visible() 82 const struct dc_plane_state *plane_state) in build_prescale_params() argument 84 if (plane_state->format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN in build_prescale_params() 85 && plane_state->format != SURFACE_PIXEL_FORMAT_INVALID in build_prescale_params() 86 && plane_state->input_csc_color_matrix.enable_adjustment in build_prescale_params() 87 && plane_state->coeff_reduction_factor.value != 0) { in build_prescale_params() 89 dc_fixpt_mul(plane_state->coeff_reduction_factor, in build_prescale_params()
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_gem_atomic_helper.c | 245 struct drm_plane_state *plane_state = plane->state; in drm_gem_duplicate_shadow_plane_state() local 248 if (!plane_state) in drm_gem_duplicate_shadow_plane_state() 283 struct drm_plane_state *plane_state) in drm_gem_destroy_shadow_plane_state() argument 286 to_drm_shadow_plane_state(plane_state); in drm_gem_destroy_shadow_plane_state() 351 struct drm_framebuffer *fb = plane_state->fb; in drm_gem_begin_shadow_fb_access() 373 struct drm_framebuffer *fb = plane_state->fb; in drm_gem_end_shadow_fb_access() 396 struct drm_plane_state *plane_state) in drm_gem_simple_kms_begin_shadow_fb_access() argument 414 struct drm_plane_state *plane_state) in drm_gem_simple_kms_end_shadow_fb_access() argument 416 drm_gem_end_shadow_fb_access(&pipe->plane, plane_state); in drm_gem_simple_kms_end_shadow_fb_access() 462 struct drm_plane_state *plane_state) in drm_gem_simple_kms_destroy_shadow_plane_state() argument [all …]
|
A D | drm_damage_helper.c | 68 struct drm_plane_state *plane_state) in drm_atomic_helper_check_plane_damage() argument 72 if (plane_state->crtc) { in drm_atomic_helper_check_plane_damage() 74 plane_state->crtc); in drm_atomic_helper_check_plane_damage() 80 drm_property_blob_put(plane_state->fb_damage_clips); in drm_atomic_helper_check_plane_damage() 81 plane_state->fb_damage_clips = NULL; in drm_atomic_helper_check_plane_damage() 160 struct drm_plane_state *plane_state; in drm_atomic_helper_dirtyfb() local 171 plane_state = drm_atomic_get_plane_state(state, plane); in drm_atomic_helper_dirtyfb() 172 if (IS_ERR(plane_state)) { in drm_atomic_helper_dirtyfb() 173 ret = PTR_ERR(plane_state); in drm_atomic_helper_dirtyfb() 177 drm_property_replace_blob(&plane_state->fb_damage_clips, in drm_atomic_helper_dirtyfb()
|
/linux-6.3-rc2/drivers/gpu/drm/tests/ |
A D | drm_plane_helper_test.c | 88 KUNIT_ASSERT_GE_MSG(test, plane_state->src.x1, 0, in check_src_eq() 90 plane_state->src.x1, DRM_RECT_FP_ARG(&plane_state->src)); in check_src_eq() 92 KUNIT_ASSERT_GE_MSG(test, plane_state->src.y1, 0, in check_src_eq() 94 plane_state->src.y1, DRM_RECT_FP_ARG(&plane_state->src)); in check_src_eq() 98 DRM_RECT_FP_ARG(&plane_state->src), DRM_RECT_FP_ARG(&expected)); in check_src_eq() 109 DRM_RECT_ARG(&plane_state->dst), DRM_RECT_ARG(&expected)); in check_crtc_eq() 115 struct drm_plane_state *plane_state = test->priv; in drm_test_check_plane_state() local 118 drm_atomic_helper_check_plane_state(plane_state, &crtc_state, in drm_test_check_plane_state() 123 KUNIT_EXPECT_TRUE(test, plane_state->visible); in drm_test_check_plane_state() 257 struct drm_plane_state *plane_state = test->priv; in drm_test_check_invalid_plane_state() local [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn20/ |
A D | dcn20_hwseq.c | 1338 if (!old_pipe->plane_state && !new_pipe->plane_state) in dcn20_detect_pipe_changes() 1341 if (!old_pipe->plane_state && new_pipe->plane_state) { in dcn20_detect_pipe_changes() 1370 new_pipe->plane_state && !new_pipe->plane_state->is_phantom) in dcn20_detect_pipe_changes() 1373 if (old_pipe->plane_state && !new_pipe->plane_state) { in dcn20_detect_pipe_changes() 1379 if (old_pipe->plane_state != new_pipe->plane_state) { in dcn20_detect_pipe_changes() 1500 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_dchubp_dpp() local 2328 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local 2330 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 2357 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_plane_addr() local 2372 plane_state->status.requested_address = plane_state->address; in dcn20_update_plane_addr() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn32/ |
A D | dcn32_resource_helpers.c | 148 pipe->plane_state = NULL; in dcn32_merge_pipes_for_subvp() 156 } else if (pipe->top_pipe && pipe->top_pipe->plane_state == pipe->plane_state) { in dcn32_merge_pipes_for_subvp() 166 pipe->plane_state = NULL; in dcn32_merge_pipes_for_subvp() 185 if (!pipe->plane_state) in dcn32_all_pipes_have_stream_and_plane() 227 if (pipe->plane_state && pipe->plane_state->rotation != ROTATION_ANGLE_0) in dcn32_any_surfaces_rotated() 244 if (pipe->plane_state) { in dcn32_is_center_timing() 383 …if (pipe->plane_state && !disable_unbounded_requesting && pipe->plane_state->tiling_info.gfx9.swiz… in dcn32_set_det_allocations() 384 if (!is_dual_plane(pipe->plane_state->format)) { in dcn32_set_det_allocations() 388 pipe->plane_state->src_rect.height >= 2880) in dcn32_set_det_allocations() 431 if (pipe->plane_state) in dcn32_save_mall_state() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn201/ |
A D | dcn201_hwseq.c | 59 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local 61 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 69 plane_state->address.grph_stereo.left_addr = in patch_address_for_sbs_tb_stereo() 134 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn201_update_plane_addr() local 138 if (plane_state == NULL) in dcn201_update_plane_addr() 141 uma = plane_state->address; in dcn201_update_plane_addr() 149 plane_state->flip_immediate); in dcn201_update_plane_addr() 151 plane_state->status.requested_address = plane_state->address; in dcn201_update_plane_addr() 153 if (plane_state->flip_immediate) in dcn201_update_plane_addr() 154 plane_state->status.current_address = plane_state->address; in dcn201_update_plane_addr() [all …]
|
/linux-6.3-rc2/include/drm/ |
A D | drm_gem_atomic_helper.h | 90 struct drm_plane_state *plane_state); 104 int drm_gem_begin_shadow_fb_access(struct drm_plane *plane, struct drm_plane_state *plane_state); 105 void drm_gem_end_shadow_fb_access(struct drm_plane *plane, struct drm_plane_state *plane_state); 120 struct drm_plane_state *plane_state); 122 struct drm_plane_state *plane_state); 127 struct drm_plane_state *plane_state);
|
A D | drm_simple_kms_helper.h | 64 struct drm_plane_state *plane_state); 92 struct drm_plane_state *plane_state, 126 struct drm_plane_state *plane_state); 136 struct drm_plane_state *plane_state); 156 struct drm_plane_state *plane_state); 228 struct drm_plane_state *plane_state);
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/ |
A D | dcn10_hw_sequencer.c | 113 (!pipe_ctx->plane_state && !old_pipe_ctx->plane_state) || in dcn10_lock_all_pipes() 1711 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local 1713 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 1740 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn10_update_plane_addr() local 1752 plane_state->status.requested_address = plane_state->address; in dcn10_update_plane_addr() 1755 plane_state->status.current_address = plane_state->address; in dcn10_update_plane_addr() 2524 if (top->plane_state && top->plane_state->layer_index == 0) in dcn10_is_rear_mpo_fix_required() 2583 plane_state->format, in dcn10_update_dpp() 2713 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn10_update_dchubp_dpp() local 2854 &plane_state->dcc, in dcn10_update_dchubp_dpp() [all …]
|