Home
last modified time | relevance | path

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

12345678

/linux/drivers/gpu/drm/amd/display/dc/core/
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()
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()
158 if (pipe_ctx->plane_state != plane_state) in dc_plane_get_status()
[all …]
A Ddc_debug.c82 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 …]
A Ddc_hw_sequencer.c340 if (pipe_ctx->plane_state->layer_index > 0) { in get_surface_visual_confirm_color()
350 if (pipe_ctx->plane_state->layer_index > 0) { in get_surface_visual_confirm_color()
639 if (current_mpc_pipe->plane_state) { in hwss_build_fast_sequence()
672 …ence[*num_steps].params.set_input_transfer_func_params.plane_state = current_mpc_pipe->plane_state; in hwss_build_fast_sequence()
882 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in hwss_setup_dpp() local
887 plane_state->format, in hwss_setup_dpp()
889 plane_state->input_csc_color_matrix, in hwss_setup_dpp()
890 plane_state->color_space, in hwss_setup_dpp()
896 plane_state->color_space, in hwss_setup_dpp()
897 plane_state->cursor_csc_color_matrix); in hwss_setup_dpp()
[all …]
/linux/drivers/gpu/drm/i915/display/
A Dintel_cursor.c114 plane_state, 0); in intel_cursor_check_surface()
167 plane_state->uapi.src = src; in intel_check_cursor()
272 plane_state->ctl = i845_cursor_ctl(crtc_state, plane_state); in i845_check_cursor()
285 if (plane_state && plane_state->uapi.visible) { in i845_cursor_update_arm()
289 cntl = plane_state->ctl | in i845_cursor_update_arm()
519 plane_state->uapi.visible && plane_state->uapi.dst.x1 < 0) { in i9xx_check_cursor()
525 plane_state->ctl = i9xx_cursor_ctl(crtc_state, plane_state); in i9xx_check_cursor()
580 plane_state->ctl); in i9xx_cursor_update_sel_fetch_arm()
653 if (plane_state && plane_state->uapi.visible) { in i9xx_cursor_update_arm()
690 if (plane_state) in i9xx_cursor_update_arm()
[all …]
A Dskl_universal_plane.c1183 if (plane_state->decrypt) in skl_plane_surf()
1264 if (plane_state->planar_linked_plane && !plane_state->planar_slave) in icl_plane_color_plane()
1463 plane_state->cus_ctl); in icl_plane_update_noarm()
1788 plane_state, in skl_check_main_ccs_coordinates()
1964 plane_state, in skl_check_nv12_aux_surface()
1975 plane_state, in skl_check_nv12_aux_surface()
2028 plane_state, in skl_check_ccs_aux_surface()
2105 !plane_state->decrypt; in check_protection()
2158 plane_state->ctl = skl_plane_ctl(crtc_state, plane_state); in skl_plane_check()
2162 plane_state); in skl_plane_check()
[all …]
A Dintel_sprite.c388 int crtc_x = plane_state->uapi.dst.x1; in vlv_sprite_update_noarm()
389 int crtc_y = plane_state->uapi.dst.y1; in vlv_sprite_update_noarm()
421 chv_sprite_update_csc(plane_state); in vlv_sprite_update_arm()
447 vlv_sprite_update_clrc(plane_state); in vlv_sprite_update_arm()
448 vlv_sprite_update_gamma(plane_state); in vlv_sprite_update_arm()
933 &plane_state->uapi.dst, in g4x_sprite_min_cdclk()
1358 if (!plane_state->uapi.visible) in g4x_sprite_check()
1370 plane_state->ctl = ivb_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check()
1372 plane_state->ctl = g4x_sprite_ctl(crtc_state, plane_state); in g4x_sprite_check()
1417 if (!plane_state->uapi.visible) in vlv_sprite_check()
[all …]
A Dintel_fbc.c1217 WARN_ON(plane_state->no_fbc_reason); in intel_fbc_update_state()
1273 return !plane_state->no_fbc_reason && in intel_fbc_is_ok()
1274 intel_fbc_is_fence_ok(plane_state) && in intel_fbc_is_ok()
1275 intel_fbc_is_cfb_ok(plane_state); in intel_fbc_is_ok()
1308 if (!plane_state->uapi.visible) { in intel_fbc_check_plane()
1360 if (!tiling_is_valid(plane_state)) { in intel_fbc_check_plane()
1365 if (!rotation_is_valid(plane_state)) { in intel_fbc_check_plane()
1370 if (!stride_is_valid(plane_state)) { in intel_fbc_check_plane()
1425 plane_state->no_fbc_reason = NULL; in intel_fbc_check_plane()
1698 if (intel_fbc_is_ok(plane_state)) { in __intel_fbc_enable()
[all …]
A Dintel_atomic_plane.c58 memset(plane_state, 0, sizeof(*plane_state)); in intel_plane_state_reset()
62 plane_state->scaler_id = -1; in intel_plane_state_reset()
74 plane_state = kzalloc(sizeof(*plane_state), GFP_KERNEL); in intel_plane_alloc()
75 if (!plane_state) { in intel_plane_alloc()
144 if (plane_state->hw.fb) in intel_plane_destroy_state()
146 kfree(plane_state); in intel_plane_destroy_state()
192 &plane_state->uapi.dst, in intel_plane_pixel_rate()
327 if (plane_state->hw.fb) in intel_plane_clear_hw_state()
330 memset(&plane_state->hw, 0, sizeof(plane_state->hw)); in intel_plane_clear_hw_state()
348 if (plane_state->hw.fb) in intel_plane_copy_uapi_to_hw_state()
[all …]
A Dintel_fb_pin.c257 to_intel_framebuffer(plane_state->hw.fb); in intel_plane_pin_fb()
262 intel_plane_fb_min_alignment(plane_state), in intel_plane_pin_fb()
264 intel_plane_uses_fence(plane_state), in intel_plane_pin_fb()
265 &plane_state->flags); in intel_plane_pin_fb()
269 plane_state->ggtt_vma = vma; in intel_plane_pin_fb()
278 plane_state->phys_dma_addr = in intel_plane_pin_fb()
287 plane_state->ggtt_vma = vma; in intel_plane_pin_fb()
290 alignment, &plane_state->flags, in intel_plane_pin_fb()
294 plane_state->ggtt_vma = NULL; in intel_plane_pin_fb()
298 plane_state->dpt_vma = vma; in intel_plane_pin_fb()
[all …]
A Di9xx_plane.c157 to_i915(plane_state->uapi.plane->dev); in i9xx_plane_ctl()
239 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()
254 plane_state, 0); in i9xx_check_plane_surface()
342 if (!plane_state->uapi.visible) in i9xx_plane_check()
349 plane_state->ctl = i9xx_plane_ctl(crtc_state, plane_state); in i9xx_plane_check()
430 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_noarm()
431 int crtc_y = plane_state->uapi.dst.y1; in i9xx_plane_update_noarm()
472 int crtc_x = plane_state->uapi.dst.x1; in i9xx_plane_update_arm()
[all …]
A Dintel_plane_initial.c37 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 …]
A Dintel_atomic_plane.h25 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,
41 const struct intel_plane_state *plane_state);
44 const struct intel_plane_state *plane_state);
65 int intel_atomic_plane_check_clipping(struct intel_plane_state *plane_state,
69 int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state);
71 struct intel_plane_state *plane_state);
A Dskl_scaler.c286 &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 …]
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()
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()
A Dintel_sprite.h24 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/
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/drivers/gpu/drm/amd/display/dc/basics/
A Ddc_common.c54 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/
A Dxe_plane_initial.c44 if (!plane_state->ggtt_vma) in intel_reuse_initial_plane_obj()
48 *fb = plane_state->hw.fb; in intel_reuse_initial_plane_obj()
217 plane_state->uapi.rotation, &plane_state->view); in intel_find_initial_plane_obj()
224 plane_state->ggtt_vma = vma; in intel_find_initial_plane_obj()
225 plane_state->uapi.src_x = 0; in intel_find_initial_plane_obj()
226 plane_state->uapi.src_y = 0; in intel_find_initial_plane_obj()
230 plane_state->uapi.crtc_x = 0; in intel_find_initial_plane_obj()
231 plane_state->uapi.crtc_y = 0; in intel_find_initial_plane_obj()
232 plane_state->uapi.crtc_w = fb->width; in intel_find_initial_plane_obj()
235 plane_state->uapi.fb = fb; in intel_find_initial_plane_obj()
[all …]
/linux/drivers/gpu/drm/
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 …]
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/drivers/gpu/drm/tests/
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/drivers/gpu/drm/amd/display/dc/hwss/dcn20/
A Ddcn20_hwseq.c1495 if (!old_pipe->plane_state && !new_pipe->plane_state) in dcn20_detect_pipe_changes()
1498 if (!old_pipe->plane_state && new_pipe->plane_state) { in dcn20_detect_pipe_changes()
1535 if (old_pipe->plane_state && !new_pipe->plane_state) { in dcn20_detect_pipe_changes()
1541 if (old_pipe->plane_state != new_pipe->plane_state) { in dcn20_detect_pipe_changes()
1662 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_dchubp_dpp() local
1982 if ((pipe_ctx->plane_state && pipe_ctx->plane_state->visible)) { in dcn20_program_pipe()
2665 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local
2667 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo()
2694 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in dcn20_update_plane_addr() local
2709 plane_state->status.requested_address = plane_state->address; in dcn20_update_plane_addr()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn201/
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/drivers/gpu/drm/amd/display/dc/
A Ddc_spl_translate.c71 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; in translate_SPL_in_params_from_pipe_ctx() local
77 switch (plane_state->ctx->dce_version) { in translate_SPL_in_params_from_pipe_ctx()
101 spl_in->basic_in.rotation = (enum spl_rotation_angle)plane_state->rotation; in translate_SPL_in_params_from_pipe_ctx()
103 populate_splrect_from_rect(&spl_in->basic_in.src_rect, &plane_state->src_rect); in translate_SPL_in_params_from_pipe_ctx()
105 populate_splrect_from_rect(&spl_in->basic_in.dst_rect, &plane_state->dst_rect); in translate_SPL_in_params_from_pipe_ctx()
107 spl_in->basic_in.horizontal_mirror = plane_state->horizontal_mirror; in translate_SPL_in_params_from_pipe_ctx()
165 } else if (!plane_state->adaptive_sharpness_en) { in translate_SPL_in_params_from_pipe_ctx()
170 spl_in->adaptive_sharpness.sharpness_level = plane_state->sharpness_level; in translate_SPL_in_params_from_pipe_ctx()
177 spl_in->lls_pref = plane_state->linear_light_scaling; in translate_SPL_in_params_from_pipe_ctx()
182 spl_in->basic_in.cositing = plane_state->cositing; in translate_SPL_in_params_from_pipe_ctx()
[all …]
/linux/include/drm/
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);

Completed in 70 milliseconds

12345678