/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_surface.c | 42 plane_state->ctx = ctx; in dc_plane_construct() 76 if (pipe_ctx->plane_state == plane_state && pipe_ctx->plane_res.hubp) in dc_plane_get_pipe_mask() 95 struct dc_plane_state *plane_state = kvzalloc(sizeof(*plane_state), in dc_create_plane_state() local 98 if (NULL == plane_state) in dc_create_plane_state() 104 return plane_state; in dc_create_plane_state() 125 if (!plane_state || in dc_plane_get_status() 126 !plane_state->ctx || in dc_plane_get_status() 127 !plane_state->ctx->dc) { in dc_plane_get_status() 143 if (pipe_ctx->plane_state != plane_state) in dc_plane_get_status() 157 if (pipe_ctx->plane_state != plane_state) in dc_plane_get_status() [all …]
|
H A D | dc_debug.c | 82 plane_state->visible, in pre_surface_trace() 84 plane_state->address.type, in pre_surface_trace() 105 plane_state->src_rect.x, in pre_surface_trace() 106 plane_state->src_rect.y, in pre_surface_trace() 109 plane_state->dst_rect.x, in pre_surface_trace() 110 plane_state->dst_rect.y, in pre_surface_trace() 113 plane_state->clip_rect.x, in pre_surface_trace() 114 plane_state->clip_rect.y, in pre_surface_trace() 166 plane_state->dcc.enable, in pre_surface_trace() 167 plane_state->format, in pre_surface_trace() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_cursor.c | 113 plane_state, 0); in intel_cursor_check_surface() 166 plane_state->uapi.src = src; in intel_check_cursor() 264 plane_state->ctl = i845_cursor_ctl(crtc_state, plane_state); in i845_check_cursor() 277 if (plane_state && plane_state->uapi.visible) { in i845_cursor_update_arm() 281 cntl = plane_state->ctl | in i845_cursor_update_arm() 489 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor() 495 plane_state->ctl = i9xx_cursor_ctl(crtc_state, plane_state); in i9xx_check_cursor() 548 plane_state->ctl); in i9xx_cursor_update_sel_fetch_arm() 567 if (plane_state && plane_state->uapi.visible) { in i9xx_cursor_update_arm() 604 if (plane_state) in i9xx_cursor_update_arm() [all …]
|
H A D | skl_universal_plane.c | 1045 if (plane_state->decrypt) in skl_plane_surf() 1126 if (plane_state->planar_linked_plane && !plane_state->planar_slave) in icl_plane_color_plane() 1316 plane_state->cus_ctl); in icl_plane_update_noarm() 1629 plane_state, in skl_check_main_ccs_coordinates() 1806 plane_state, in skl_check_nv12_aux_surface() 1817 plane_state, in skl_check_nv12_aux_surface() 1870 plane_state, in skl_check_ccs_aux_surface() 1947 !plane_state->decrypt; in check_protection() 2000 plane_state->ctl = skl_plane_ctl(crtc_state, plane_state); in skl_plane_check() 2004 plane_state); in skl_plane_check() [all …]
|
H A D | intel_sprite.c | 374 int crtc_x = plane_state->uapi.dst.x1; in vlv_sprite_update_noarm() 375 int crtc_y = plane_state->uapi.dst.y1; in vlv_sprite_update_noarm() 406 chv_sprite_update_csc(plane_state); in vlv_sprite_update_arm() 432 vlv_sprite_update_clrc(plane_state); in vlv_sprite_update_arm() 433 vlv_sprite_update_gamma(plane_state); in vlv_sprite_update_arm() 913 &plane_state->uapi.dst, in g4x_sprite_min_cdclk() 1324 if (!plane_state->uapi.visible) in g4x_sprite_check() 1336 plane_state->ctl = ivb_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check() 1338 plane_state->ctl = g4x_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check() 1382 if (!plane_state->uapi.visible) in vlv_sprite_check() [all …]
|
H A D | intel_fbc.c | 1142 WARN_ON(plane_state->no_fbc_reason); in intel_fbc_update_state() 1198 return !plane_state->no_fbc_reason && in intel_fbc_is_ok() 1199 intel_fbc_is_fence_ok(plane_state) && in intel_fbc_is_ok() 1200 intel_fbc_is_cfb_ok(plane_state); in intel_fbc_is_ok() 1232 if (!plane_state->uapi.visible) { in intel_fbc_check_plane() 1272 if (!tiling_is_valid(plane_state)) { in intel_fbc_check_plane() 1277 if (!rotation_is_valid(plane_state)) { in intel_fbc_check_plane() 1282 if (!stride_is_valid(plane_state)) { in intel_fbc_check_plane() 1337 plane_state->no_fbc_reason = NULL; in intel_fbc_check_plane() 1610 if (intel_fbc_is_ok(plane_state)) { in __intel_fbc_enable() [all …]
|
H A D | intel_atomic_plane.c | 56 memset(plane_state, 0, sizeof(*plane_state)); in intel_plane_state_reset() 60 plane_state->scaler_id = -1; in intel_plane_state_reset() 72 plane_state = kzalloc(sizeof(*plane_state), GFP_KERNEL); in intel_plane_alloc() 73 if (!plane_state) { in intel_plane_alloc() 142 if (plane_state->hw.fb) in intel_plane_destroy_state() 144 kfree(plane_state); in intel_plane_destroy_state() 182 &plane_state->uapi.dst, in intel_plane_pixel_rate() 317 if (plane_state->hw.fb) in intel_plane_clear_hw_state() 320 memset(&plane_state->hw, 0, sizeof(plane_state->hw)); in intel_plane_clear_hw_state() 338 if (plane_state->hw.fb) in intel_plane_copy_uapi_to_hw_state() [all …]
|
H A D | i9xx_plane.c | 156 to_i915(plane_state->uapi.plane->dev); in i9xx_plane_ctl() 228 to_i915(plane_state->uapi.plane->dev); in i9xx_check_plane_surface() 238 if (!plane_state->uapi.visible) in i9xx_check_plane_surface() 242 src_x = plane_state->uapi.src.x1 >> 16; in i9xx_check_plane_surface() 243 src_y = plane_state->uapi.src.y1 >> 16; in i9xx_check_plane_surface() 253 plane_state, 0); in i9xx_check_plane_surface() 341 if (!plane_state->uapi.visible) in i9xx_plane_check() 348 plane_state->ctl = i9xx_plane_ctl(crtc_state, plane_state); in i9xx_plane_check() 429 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_noarm() 430 int crtc_y = plane_state->uapi.dst.y1; in i9xx_plane_update_noarm() [all …]
|
H A D | intel_plane_initial.c | 37 if (!plane_state->ggtt_vma) in intel_reuse_initial_plane_obj() 41 *fb = plane_state->hw.fb; in intel_reuse_initial_plane_obj() 42 *vma = plane_state->ggtt_vma; in intel_reuse_initial_plane_obj() 367 plane_state->uapi.rotation, &plane_state->view); in intel_find_initial_plane_obj() 375 plane_state->uapi.src_x = 0; in intel_find_initial_plane_obj() 376 plane_state->uapi.src_y = 0; in intel_find_initial_plane_obj() 380 plane_state->uapi.crtc_x = 0; in intel_find_initial_plane_obj() 381 plane_state->uapi.crtc_y = 0; in intel_find_initial_plane_obj() 382 plane_state->uapi.crtc_w = fb->width; in intel_find_initial_plane_obj() 388 plane_state->uapi.fb = fb; in intel_find_initial_plane_obj() [all …]
|
H A D | skl_scaler.c | 286 &plane_state->scaler_id, in skl_update_scaler_plane() 295 if (ret || plane_state->scaler_id < 0) in skl_update_scaler_plane() 299 if (plane_state->ckey.flags) { in skl_update_scaler_plane() 379 if (plane_state && plane_state->hw.fb && in intel_atomic_setup_scaler() 395 plane_state->planar_linked_plane; in intel_atomic_setup_scaler() 422 if (plane_state && plane_state->hw.fb) { in intel_atomic_setup_scaler() 596 scaler_id = &plane_state->scaler_id; in intel_atomic_setup_scalers() 601 plane_state, scaler_id); in intel_atomic_setup_scalers() 784 &plane_state->uapi.dst, in skl_program_plane_scaler() 787 &plane_state->uapi.dst, in skl_program_plane_scaler() [all …]
|
H 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, 65 int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state); 67 struct intel_plane_state *plane_state);
|
H A D | intel_sprite_uapi.c | 16 static void intel_plane_set_ckey(struct intel_plane_state *plane_state, in intel_plane_set_ckey() argument 19 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_set_ckey() 21 struct drm_intel_sprite_colorkey *key = &plane_state->ckey; in intel_plane_set_ckey() 48 struct drm_plane_state *plane_state; in intel_sprite_set_colorkey_ioctl() local 92 plane_state = drm_atomic_get_plane_state(state, plane); in intel_sprite_set_colorkey_ioctl() 93 ret = PTR_ERR_OR_ZERO(plane_state); in intel_sprite_set_colorkey_ioctl() 95 intel_plane_set_ckey(to_intel_plane_state(plane_state), set); in intel_sprite_set_colorkey_ioctl() 106 plane_state = drm_atomic_get_plane_state(state, in intel_sprite_set_colorkey_ioctl() 108 ret = PTR_ERR_OR_ZERO(plane_state); in intel_sprite_set_colorkey_ioctl() 110 intel_plane_set_ckey(to_intel_plane_state(plane_state), set); in intel_sprite_set_colorkey_ioctl()
|
H A D | intel_fb_pin.c | 243 struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_pin_fb() 251 &plane_state->view.gtt, in intel_plane_pin_fb() 252 intel_plane_uses_fence(plane_state), in intel_plane_pin_fb() 253 &plane_state->flags); in intel_plane_pin_fb() 257 plane_state->ggtt_vma = vma; in intel_plane_pin_fb() 266 plane_state->phys_dma_addr = in intel_plane_pin_fb() 275 plane_state->ggtt_vma = vma; in intel_plane_pin_fb() 278 &plane_state->flags, intel_fb->dpt_vm); in intel_plane_pin_fb() 281 plane_state->ggtt_vma = NULL; in intel_plane_pin_fb() 285 plane_state->dpt_vma = vma; in intel_plane_pin_fb() [all …]
|
H A D | intel_sprite.h | 24 int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state); 25 int chv_plane_check_rotation(const struct intel_plane_state *plane_state); 28 const struct intel_plane_state *plane_state); 30 const struct intel_plane_state *plane_state); 32 const struct intel_plane_state *plane_state);
|
/linux/drivers/gpu/drm/amd/display/dc/dce60/ |
H 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/drivers/gpu/drm/amd/display/dc/basics/ |
H 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/drivers/gpu/drm/xe/display/ |
H A D | xe_plane_initial.c | 41 if (!plane_state->ggtt_vma) in intel_reuse_initial_plane_obj() 45 *fb = plane_state->hw.fb; in intel_reuse_initial_plane_obj() 212 plane_state->uapi.rotation, &plane_state->view); in intel_find_initial_plane_obj() 215 false, &plane_state->flags); in intel_find_initial_plane_obj() 219 plane_state->ggtt_vma = vma; in intel_find_initial_plane_obj() 220 plane_state->uapi.src_x = 0; in intel_find_initial_plane_obj() 221 plane_state->uapi.src_y = 0; in intel_find_initial_plane_obj() 225 plane_state->uapi.crtc_x = 0; in intel_find_initial_plane_obj() 226 plane_state->uapi.crtc_y = 0; in intel_find_initial_plane_obj() 230 plane_state->uapi.fb = fb; in intel_find_initial_plane_obj() [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_gem_atomic_helper.c | 221 struct drm_plane_state *plane_state = plane->state; in __drm_gem_duplicate_shadow_plane_state() local 223 to_drm_shadow_plane_state(plane_state); in __drm_gem_duplicate_shadow_plane_state() 252 struct drm_plane_state *plane_state = plane->state; in drm_gem_duplicate_shadow_plane_state() local 255 if (!plane_state) in drm_gem_duplicate_shadow_plane_state() 291 struct drm_plane_state *plane_state) in drm_gem_destroy_shadow_plane_state() argument 294 to_drm_shadow_plane_state(plane_state); in drm_gem_destroy_shadow_plane_state() 360 struct drm_framebuffer *fb = plane_state->fb; in drm_gem_begin_shadow_fb_access() 382 struct drm_framebuffer *fb = plane_state->fb; in drm_gem_end_shadow_fb_access() 405 struct drm_plane_state *plane_state) in drm_gem_simple_kms_begin_shadow_fb_access() argument 423 struct drm_plane_state *plane_state) in drm_gem_simple_kms_end_shadow_fb_access() argument [all …]
|
H 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/drivers/gpu/drm/tests/ |
H 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/drivers/gpu/drm/amd/display/dc/hwss/dcn20/ |
H A D | dcn20_hwseq.c | 1494 if (!old_pipe->plane_state && !new_pipe->plane_state) in dcn20_detect_pipe_changes() 1497 if (!old_pipe->plane_state && new_pipe->plane_state) { in dcn20_detect_pipe_changes() 1534 if (old_pipe->plane_state && !new_pipe->plane_state) { in dcn20_detect_pipe_changes() 1540 if (old_pipe->plane_state != new_pipe->plane_state) { in dcn20_detect_pipe_changes() 1661 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_dchubp_dpp() local 1802 &plane_state->dcc, in dcn20_update_dchubp_dpp() 2562 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local 2564 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 2591 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_plane_addr() local 2606 plane_state->status.requested_address = plane_state->address; in dcn20_update_plane_addr() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn201/ |
H 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/include/drm/ |
H A D | drm_gem_atomic_helper.h | 100 struct drm_plane_state *plane_state); 114 int drm_gem_begin_shadow_fb_access(struct drm_plane *plane, struct drm_plane_state *plane_state); 115 void drm_gem_end_shadow_fb_access(struct drm_plane *plane, struct drm_plane_state *plane_state); 130 struct drm_plane_state *plane_state); 132 struct drm_plane_state *plane_state); 137 struct drm_plane_state *plane_state);
|
/linux/drivers/gpu/drm/amd/display/dc/dml2/ |
H A D | dml2_mall_phantom.c | 86 if (pipe->plane_state->dcc.enable) in dml2_helper_calculate_num_ways_for_subvp() 120 pipe->plane_state = NULL; in merge_pipes_for_subvp() 128 } else if (pipe->top_pipe && pipe->top_pipe->plane_state == pipe->plane_state) { in merge_pipes_for_subvp() 138 pipe->plane_state = NULL; in merge_pipes_for_subvp() 156 if (!pipe->plane_state) in all_pipes_have_stream_and_plane() 255 if (pipe->plane_state && !pipe->top_pipe && in assign_subvp_pipe() 616 if (pipe->plane_state && !pipe->top_pipe && in dml2_svp_validate_static_schedulability() 746 if (curr_pipe->top_pipe && curr_pipe->top_pipe->plane_state == curr_pipe->plane_state) { in enable_phantom_plane() 752 curr_pipe->plane_state); in enable_phantom_plane() 859 if (pipe->plane_state) { in dml2_svp_remove_all_phantom_pipes() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_resource_helpers.c | 126 pipe->plane_state = NULL; in dcn32_merge_pipes_for_subvp() 134 } else if (pipe->top_pipe && pipe->top_pipe->plane_state == pipe->plane_state) { in dcn32_merge_pipes_for_subvp() 144 pipe->plane_state = NULL; in dcn32_merge_pipes_for_subvp() 163 if (!pipe->plane_state) in dcn32_all_pipes_have_stream_and_plane() 205 if (pipe->plane_state && pipe->plane_state->rotation != ROTATION_ANGLE_0) in dcn32_any_surfaces_rotated() 222 if (pipe->plane_state) { in dcn32_is_center_timing() 403 …if (pipe->plane_state && !disable_unbounded_requesting && pipe->plane_state->tiling_info.gfx9.swiz… in dcn32_set_det_allocations() 408 pipe->plane_state->src_rect.height >= 2880) in dcn32_set_det_allocations() 590 pipe->plane_state->src_rect.width == width && in dcn32_check_native_scaling_for_res() 592 pipe->plane_state->dst_rect.width == width && in dcn32_check_native_scaling_for_res() [all …]
|