Home
last modified time | relevance | path

Searched refs:plane_state (Results 1 – 25 of 192) sorted by relevance

12345678

/linux-6.15/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c42 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()
88 struct dc_plane_state *plane_state = kvzalloc(sizeof(*plane_state), in dc_create_plane_state() local
91 if (NULL == plane_state) in dc_create_plane_state()
97 return plane_state; in dc_create_plane_state()
118 if (!plane_state || in dc_plane_get_status()
119 !plane_state->ctx || in dc_plane_get_status()
136 if (pipe_ctx->plane_state != plane_state) in dc_plane_get_status()
151 if (pipe_ctx->plane_state != plane_state) in dc_plane_get_status()
169 kvfree(plane_state); in dc_plane_state_free()
[all …]
/linux-6.15/drivers/gpu/drm/i915/display/
H A Dintel_cursor.c113 plane_state, 0); in intel_cursor_check_surface()
169 plane_state->uapi.src = src; in intel_check_cursor()
170 plane_state->uapi.dst = dst; in intel_check_cursor()
277 plane_state->ctl = i845_cursor_ctl(crtc_state, plane_state); in i845_check_cursor()
291 if (plane_state && plane_state->uapi.visible) { in i845_cursor_update_arm()
295 cntl = plane_state->ctl | in i845_cursor_update_arm()
530 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor()
537 plane_state->ctl = i9xx_cursor_ctl(crtc_state, plane_state); in i9xx_check_cursor()
668 if (plane_state && plane_state->uapi.visible) { in i9xx_cursor_update_arm()
672 cntl = plane_state->ctl | in i9xx_cursor_update_arm()
[all …]
H A Dskl_universal_plane.c1296 if (plane_state->decrypt) in skl_plane_surf()
1378 if (plane_state->planar_linked_plane && !plane_state->is_y_plane) in icl_plane_color_plane()
1944 plane_state, in skl_check_main_ccs_coordinates()
2124 plane_state, in skl_check_nv12_aux_surface()
2135 plane_state, in skl_check_nv12_aux_surface()
2189 plane_state, in skl_check_ccs_aux_surface()
2269 !plane_state->decrypt; in check_protection()
2352 clip_damage(plane_state); in skl_plane_check()
2366 plane_state->ctl = skl_plane_ctl(crtc_state, plane_state); in skl_plane_check()
2370 plane_state); in skl_plane_check()
[all …]
H A Dintel_sprite.c374 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()
407 chv_sprite_update_csc(plane_state); in vlv_sprite_update_arm()
433 vlv_sprite_update_clrc(plane_state); in vlv_sprite_update_arm()
434 vlv_sprite_update_gamma(plane_state); in vlv_sprite_update_arm()
938 &plane_state->uapi.dst, in g4x_sprite_min_cdclk()
1377 if (!plane_state->uapi.visible) in g4x_sprite_check()
1389 plane_state->ctl = ivb_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check()
1391 plane_state->ctl = g4x_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check()
1434 if (!plane_state->uapi.visible) in vlv_sprite_check()
[all …]
H A Dintel_fbc.c1287 WARN_ON(plane_state->no_fbc_reason); in intel_fbc_update_state()
1343 return !plane_state->no_fbc_reason && in intel_fbc_is_ok()
1344 intel_fbc_is_fence_ok(plane_state) && in intel_fbc_is_ok()
1345 intel_fbc_is_cfb_ok(plane_state); in intel_fbc_is_ok()
1362 !intel_fbc_is_ok(plane_state)) { in __intel_fbc_prepare_dirty_rect()
1434 if (!plane_state->uapi.visible) { in intel_fbc_check_plane()
1491 if (!tiling_is_valid(plane_state)) { in intel_fbc_check_plane()
1501 if (!stride_is_valid(plane_state)) { in intel_fbc_check_plane()
1556 plane_state->no_fbc_reason = NULL; in intel_fbc_check_plane()
1831 if (intel_fbc_is_ok(plane_state)) { in __intel_fbc_enable()
[all …]
H A Dintel_atomic_plane.c64 memset(plane_state, 0, sizeof(*plane_state)); in intel_plane_state_reset()
68 plane_state->scaler_id = -1; in intel_plane_state_reset()
80 plane_state = kzalloc(sizeof(*plane_state), GFP_KERNEL); in intel_plane_alloc()
81 if (!plane_state) { in intel_plane_alloc()
164 if (plane_state->hw.fb) in intel_plane_destroy_state()
166 kfree(plane_state); in intel_plane_destroy_state()
337 if (plane_state->hw.fb) in intel_plane_clear_hw_state()
340 memset(&plane_state->hw, 0, sizeof(plane_state->hw)); in intel_plane_clear_hw_state()
377 if (plane_state->hw.fb) in intel_plane_copy_uapi_to_hw_state()
400 if (plane_state->hw.fb) in intel_plane_copy_hw_state()
[all …]
H A Dintel_fb_pin.c254 &plane_state->view, in intel_plane_fb_vtd_guard()
255 plane_state->hw.rotation); in intel_plane_fb_vtd_guard()
263 to_intel_framebuffer(plane_state->hw.fb); in intel_plane_pin_fb()
271 intel_plane_uses_fence(plane_state), in intel_plane_pin_fb()
272 &plane_state->flags); in intel_plane_pin_fb()
276 plane_state->ggtt_vma = vma; in intel_plane_pin_fb()
296 plane_state->ggtt_vma = vma; in intel_plane_pin_fb()
299 alignment, &plane_state->flags, in intel_plane_pin_fb()
303 plane_state->ggtt_vma = NULL; in intel_plane_pin_fb()
307 plane_state->dpt_vma = vma; in intel_plane_pin_fb()
[all …]
H A Di9xx_plane.c239 if (!plane_state->uapi.visible) in i9xx_check_plane_surface()
243 src_x = plane_state->uapi.src.x1 >> 16; in i9xx_check_plane_surface()
244 src_y = plane_state->uapi.src.y1 >> 16; in i9xx_check_plane_surface()
258 plane_state, 0); in i9xx_check_plane_surface()
347 if (!plane_state->uapi.visible) in i9xx_plane_check()
354 plane_state->ctl = i9xx_plane_ctl(crtc_state, plane_state); in i9xx_plane_check()
436 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_noarm()
437 int crtc_y = plane_state->uapi.dst.y1; in i9xx_plane_update_noarm()
479 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_arm()
480 int crtc_y = plane_state->uapi.dst.y1; in i9xx_plane_update_arm()
[all …]
H A Dintel_atomic_plane.h29 const struct intel_plane_state *plane_state);
32 const struct intel_plane_state *plane_state,
34 void intel_plane_copy_uapi_to_hw_state(struct intel_plane_state *plane_state,
37 void intel_plane_copy_hw_state(struct intel_plane_state *plane_state,
42 const struct intel_plane_state *plane_state,
47 const struct intel_plane_state *plane_state);
51 const struct intel_plane_state *plane_state);
76 int intel_atomic_plane_check_clipping(struct intel_plane_state *plane_state,
80 int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state);
82 struct intel_plane_state *plane_state);
[all …]
H A Dskl_scaler.c295 &plane_state->scaler_id, in skl_update_scaler_plane()
380 if (plane_state && plane_state->hw.fb && in intel_atomic_setup_scaler()
396 plane_state->planar_linked_plane; in intel_atomic_setup_scaler()
419 if (plane_state && plane_state->hw.fb) { in intel_atomic_setup_scaler()
520 struct intel_plane_state *plane_state; in setup_plane_scaler() local
537 if (IS_ERR(plane_state)) in setup_plane_scaler()
538 return PTR_ERR(plane_state); in setup_plane_scaler()
543 plane_state, &plane_state->scaler_id); in setup_plane_scaler()
803 &plane_state->uapi.dst, in skl_program_plane_scaler()
806 &plane_state->uapi.dst, in skl_program_plane_scaler()
[all …]
H A Dintel_plane_initial.c42 if (!plane_state->ggtt_vma) in intel_reuse_initial_plane_obj()
46 *fb = plane_state->hw.fb; in intel_reuse_initial_plane_obj()
47 *vma = plane_state->ggtt_vma; in intel_reuse_initial_plane_obj()
376 plane_state->uapi.rotation, &plane_state->view); in intel_find_initial_plane_obj()
384 plane_state->uapi.src_x = 0; in intel_find_initial_plane_obj()
385 plane_state->uapi.src_y = 0; in intel_find_initial_plane_obj()
389 plane_state->uapi.crtc_x = 0; in intel_find_initial_plane_obj()
390 plane_state->uapi.crtc_y = 0; in intel_find_initial_plane_obj()
391 plane_state->uapi.crtc_w = fb->width; in intel_find_initial_plane_obj()
397 plane_state->uapi.fb = fb; in intel_find_initial_plane_obj()
[all …]
H A Dintel_sprite_uapi.c16 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()
49 struct drm_plane_state *plane_state; in intel_sprite_set_colorkey_ioctl() local
93 plane_state = drm_atomic_get_plane_state(state, plane); in intel_sprite_set_colorkey_ioctl()
94 ret = PTR_ERR_OR_ZERO(plane_state); in intel_sprite_set_colorkey_ioctl()
96 intel_plane_set_ckey(to_intel_plane_state(plane_state), set); in intel_sprite_set_colorkey_ioctl()
107 plane_state = drm_atomic_get_plane_state(state, in intel_sprite_set_colorkey_ioctl()
109 ret = PTR_ERR_OR_ZERO(plane_state); in intel_sprite_set_colorkey_ioctl()
111 intel_plane_set_ckey(to_intel_plane_state(plane_state), set); in intel_sprite_set_colorkey_ioctl()
H A Dintel_sprite.h19 int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state);
20 int chv_plane_check_rotation(const struct intel_plane_state *plane_state);
23 const struct intel_plane_state *plane_state);
25 const struct intel_plane_state *plane_state);
27 const struct intel_plane_state *plane_state);
/linux-6.15/drivers/gpu/drm/amd/display/dc/dce60/
H A Ddce60_hw_sequencer.c101 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.15/drivers/gpu/drm/amd/display/dc/basics/
H A Ddc_common.c55 if (pipe_ctx->plane_state && pipe_ctx->plane_state->visible) in is_lower_pipe_tree_visible()
64 if (pipe_ctx->plane_state && pipe_ctx->plane_state->visible) in is_upper_pipe_tree_visible()
73 if (pipe_ctx->plane_state && pipe_ctx->plane_state->visible) in is_pipe_tree_visible()
83 const struct dc_plane_state *plane_state) in build_prescale_params() argument
85 if (plane_state->format >= SURFACE_PIXEL_FORMAT_VIDEO_BEGIN in build_prescale_params()
86 && plane_state->format != SURFACE_PIXEL_FORMAT_INVALID in build_prescale_params()
87 && plane_state->input_csc_color_matrix.enable_adjustment in build_prescale_params()
88 && plane_state->coeff_reduction_factor.value != 0) { in build_prescale_params()
90 dc_fixpt_mul(plane_state->coeff_reduction_factor, in build_prescale_params()
/linux-6.15/drivers/gpu/drm/
H A Ddrm_gem_atomic_helper.c221 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 Ddrm_damage_helper.c68 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.15/drivers/gpu/drm/xe/display/
H A Dxe_plane_initial.c61 if (!plane_state->ggtt_vma) in intel_reuse_initial_plane_obj()
65 *fb = plane_state->hw.fb; in intel_reuse_initial_plane_obj()
232 plane_state->uapi.rotation, &plane_state->view); in intel_find_initial_plane_obj()
239 plane_state->ggtt_vma = vma; in intel_find_initial_plane_obj()
240 plane_state->uapi.src_x = 0; in intel_find_initial_plane_obj()
241 plane_state->uapi.src_y = 0; in intel_find_initial_plane_obj()
245 plane_state->uapi.crtc_x = 0; in intel_find_initial_plane_obj()
246 plane_state->uapi.crtc_y = 0; in intel_find_initial_plane_obj()
247 plane_state->uapi.crtc_w = fb->width; in intel_find_initial_plane_obj()
250 plane_state->uapi.fb = fb; in intel_find_initial_plane_obj()
[all …]
/linux-6.15/drivers/gpu/drm/tests/
H A Ddrm_plane_helper_test.c88 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.15/drivers/gpu/drm/amd/display/dc/hwss/dcn20/
H A Ddcn20_hwseq.c1503 if (!old_pipe->plane_state && !new_pipe->plane_state) in dcn20_detect_pipe_changes()
1506 if (!old_pipe->plane_state && new_pipe->plane_state) { in dcn20_detect_pipe_changes()
1543 if (old_pipe->plane_state && !new_pipe->plane_state) { in dcn20_detect_pipe_changes()
1549 if (old_pipe->plane_state != new_pipe->plane_state) { in dcn20_detect_pipe_changes()
1670 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_dchubp_dpp() local
2011 if ((pipe_ctx->plane_state && pipe_ctx->plane_state->visible)) { in dcn20_program_pipe()
2697 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local
2699 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo()
2726 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_plane_addr() local
2741 plane_state->status.requested_address = plane_state->address; in dcn20_update_plane_addr()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/hwss/dcn201/
H A Ddcn201_hwseq.c59 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()
137 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn201_update_plane_addr() local
141 if (plane_state == NULL) in dcn201_update_plane_addr()
144 uma = plane_state->address; in dcn201_update_plane_addr()
152 plane_state->flip_immediate); in dcn201_update_plane_addr()
154 plane_state->status.requested_address = plane_state->address; in dcn201_update_plane_addr()
156 if (plane_state->flip_immediate) in dcn201_update_plane_addr()
157 plane_state->status.current_address = plane_state->address; in dcn201_update_plane_addr()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/
H A Ddc_spl_translate.c78 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; in translate_SPL_in_params_from_pipe_ctx() local
84 switch (plane_state->ctx->dce_version) { in translate_SPL_in_params_from_pipe_ctx()
108 spl_in->basic_in.rotation = (enum spl_rotation_angle)plane_state->rotation; in translate_SPL_in_params_from_pipe_ctx()
110 populate_splrect_from_rect(&spl_in->basic_in.src_rect, &plane_state->src_rect); in translate_SPL_in_params_from_pipe_ctx()
112 populate_splrect_from_rect(&spl_in->basic_in.dst_rect, &plane_state->dst_rect); in translate_SPL_in_params_from_pipe_ctx()
114 spl_in->basic_in.horizontal_mirror = plane_state->horizontal_mirror; in translate_SPL_in_params_from_pipe_ctx()
174 } else if (!plane_state->adaptive_sharpness_en) { in translate_SPL_in_params_from_pipe_ctx()
179 spl_in->adaptive_sharpness.sharpness_level = plane_state->sharpness_level; in translate_SPL_in_params_from_pipe_ctx()
186 spl_in->lls_pref = plane_state->linear_light_scaling; in translate_SPL_in_params_from_pipe_ctx()
191 spl_in->basic_in.cositing = plane_state->cositing; in translate_SPL_in_params_from_pipe_ctx()
[all …]
/linux-6.15/include/drm/
H A Ddrm_gem_atomic_helper.h100 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-6.15/drivers/gpu/drm/amd/display/dc/hwss/dcn10/
H A Ddcn10_hwseq.c117 (!pipe_ctx->plane_state && !old_pipe_ctx->plane_state) || in dcn10_lock_all_pipes()
1765 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local
1767 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo()
1794 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn10_update_plane_addr() local
1806 plane_state->status.requested_address = plane_state->address; in dcn10_update_plane_addr()
1809 plane_state->status.current_address = plane_state->address; in dcn10_update_plane_addr()
2586 if (top->plane_state && top->plane_state->layer_index == 0 && !top->plane_state->global_alpha) in dcn10_is_rear_mpo_fix_required()
2648 plane_state->format, in dcn10_update_dpp()
2770 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn10_update_dchubp_dpp() local
2911 &plane_state->dcc, in dcn10_update_dchubp_dpp()
[all …]
/linux-6.15/drivers/gpu/drm/amd/display/dc/dml2/
H A Ddml2_mall_phantom.c86 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()
861 if (pipe->plane_state) { in dml2_svp_remove_all_phantom_pipes()
[all …]

12345678