Home
last modified time | relevance | path

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

12345

/OK3568_Linux_fs/kernel/drivers/gpu/drm/selftests/
H A Dtest-drm_plane_helper.c14 static void set_src(struct drm_plane_state *plane_state, in set_src() argument
18 plane_state->src_x = src_x; in set_src()
19 plane_state->src_y = src_y; in set_src()
20 plane_state->src_w = src_w; in set_src()
21 plane_state->src_h = src_h; in set_src()
24 static bool check_src_eq(struct drm_plane_state *plane_state, in check_src_eq() argument
28 if (plane_state->src.x1 < 0) { in check_src_eq()
29 pr_err("src x coordinate %x should never be below 0.\n", plane_state->src.x1); in check_src_eq()
30 drm_rect_debug_print("src: ", &plane_state->src, true); in check_src_eq()
33 if (plane_state->src.y1 < 0) { in check_src_eq()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_surface.c40 static void dc_plane_construct(struct dc_context *ctx, struct dc_plane_state *plane_state) in dc_plane_construct() argument
42 plane_state->ctx = ctx; in dc_plane_construct()
44 plane_state->gamma_correction = dc_create_gamma(); in dc_plane_construct()
45 if (plane_state->gamma_correction != NULL) in dc_plane_construct()
46 plane_state->gamma_correction->is_identity = true; in dc_plane_construct()
48 plane_state->in_transfer_func = dc_create_transfer_func(); in dc_plane_construct()
49 if (plane_state->in_transfer_func != NULL) { in dc_plane_construct()
50 plane_state->in_transfer_func->type = TF_TYPE_BYPASS; in dc_plane_construct()
52 plane_state->in_shaper_func = dc_create_transfer_func(); in dc_plane_construct()
53 if (plane_state->in_shaper_func != NULL) { in dc_plane_construct()
[all …]
H A Ddc_debug.c66 const struct dc_plane_state *plane_state = plane_states[i]; in pre_surface_trace() local
80 plane_state->visible, in pre_surface_trace()
81 plane_state->flip_immediate, in pre_surface_trace()
82 plane_state->address.type, in pre_surface_trace()
83 plane_state->address.grph.addr.quad_part, in pre_surface_trace()
84 plane_state->address.grph.meta_addr.quad_part, in pre_surface_trace()
85 plane_state->scaling_quality.h_taps, in pre_surface_trace()
86 plane_state->scaling_quality.v_taps, in pre_surface_trace()
87 plane_state->scaling_quality.h_taps_c, in pre_surface_trace()
88 plane_state->scaling_quality.v_taps_c); in pre_surface_trace()
[all …]
H A Ddc_resource.c597 while (other_pipe && other_pipe->plane_state == pipe->plane_state) { in get_num_mpc_splits()
602 while (other_pipe && other_pipe->plane_state == pipe->plane_state) { in get_num_mpc_splits()
635 while (split_pipe && split_pipe->plane_state == pipe_ctx->plane_state) { in calculate_split_count_and_index()
652 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; in calculate_viewport() local
655 struct rect surf_src = plane_state->src_rect; in calculate_viewport()
674 dest = plane_state->dst_rect; in calculate_viewport()
675 clip.x = stream->src.x > plane_state->clip_rect.x ? in calculate_viewport()
676 stream->src.x : plane_state->clip_rect.x; in calculate_viewport()
679 plane_state->clip_rect.x + plane_state->clip_rect.width ? in calculate_viewport()
681 plane_state->clip_rect.x + plane_state->clip_rect.width - clip.x ; in calculate_viewport()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_sprite.c248 int intel_plane_check_stride(const struct intel_plane_state *plane_state) in intel_plane_check_stride() argument
250 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_check_stride()
251 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_check_stride()
252 unsigned int rotation = plane_state->hw.rotation; in intel_plane_check_stride()
261 if (intel_plane_can_remap(plane_state) && in intel_plane_check_stride()
262 !plane_state->uapi.visible) in intel_plane_check_stride()
266 stride = plane_state->color_plane[0].stride; in intel_plane_check_stride()
280 int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state) in intel_plane_check_src_coordinates() argument
282 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_check_src_coordinates()
283 struct drm_rect *src = &plane_state->uapi.src; in intel_plane_check_src_coordinates()
[all …]
H A Dintel_atomic_plane.c45 static void intel_plane_state_reset(struct intel_plane_state *plane_state, in intel_plane_state_reset() argument
48 memset(plane_state, 0, sizeof(*plane_state)); in intel_plane_state_reset()
50 __drm_atomic_helper_plane_state_reset(&plane_state->uapi, &plane->base); in intel_plane_state_reset()
52 plane_state->scaler_id = -1; in intel_plane_state_reset()
57 struct intel_plane_state *plane_state; in intel_plane_alloc() local
64 plane_state = kzalloc(sizeof(*plane_state), GFP_KERNEL); in intel_plane_alloc()
65 if (!plane_state) { in intel_plane_alloc()
70 intel_plane_state_reset(plane_state, plane); in intel_plane_alloc()
72 plane->base.state = &plane_state->uapi; in intel_plane_alloc()
127 struct intel_plane_state *plane_state = to_intel_plane_state(state); in intel_plane_destroy_state() local
[all …]
H A Dintel_sprite.h28 int intel_plane_check_stride(const struct intel_plane_state *plane_state);
29 int intel_plane_check_src_coordinates(struct intel_plane_state *plane_state);
30 int chv_plane_check_rotation(const struct intel_plane_state *plane_state);
46 const struct intel_plane_state *plane_state);
48 const struct intel_plane_state *plane_state);
50 const struct intel_plane_state *plane_state);
H A Dintel_atomic_plane.h22 const struct intel_plane_state *plane_state);
25 const struct intel_plane_state *plane_state);
26 void intel_plane_copy_uapi_to_hw_state(struct intel_plane_state *plane_state,
30 const struct intel_plane_state *plane_state);
51 struct intel_plane_state *plane_state);
56 struct intel_plane_state *plane_state);
H A Dintel_display.c2208 static bool intel_plane_uses_fence(const struct intel_plane_state *plane_state) in intel_plane_uses_fence() argument
2210 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_uses_fence()
2215 plane_state->view.type == I915_GGTT_VIEW_NORMAL); in intel_plane_uses_fence()
2804 bool intel_plane_can_remap(const struct intel_plane_state *plane_state) in intel_plane_can_remap() argument
2806 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_can_remap()
2808 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_can_remap()
2844 static bool intel_plane_needs_remap(const struct intel_plane_state *plane_state) in intel_plane_needs_remap() argument
2846 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_needs_remap()
2847 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_needs_remap()
2848 unsigned int rotation = plane_state->hw.rotation; in intel_plane_needs_remap()
[all …]
H A Dintel_fbc.c696 const struct intel_plane_state *plane_state) in intel_fbc_update_state_cache() argument
701 struct drm_framebuffer *fb = plane_state->hw.fb; in intel_fbc_update_state_cache()
703 cache->plane.visible = plane_state->uapi.visible; in intel_fbc_update_state_cache()
711 cache->plane.rotation = plane_state->hw.rotation; in intel_fbc_update_state_cache()
717 cache->plane.src_w = drm_rect_width(&plane_state->uapi.src) >> 16; in intel_fbc_update_state_cache()
718 cache->plane.src_h = drm_rect_height(&plane_state->uapi.src) >> 16; in intel_fbc_update_state_cache()
719 cache->plane.adjusted_x = plane_state->color_plane[0].x; in intel_fbc_update_state_cache()
720 cache->plane.adjusted_y = plane_state->color_plane[0].y; in intel_fbc_update_state_cache()
722 cache->plane.pixel_blend_mode = plane_state->hw.pixel_blend_mode; in intel_fbc_update_state_cache()
728 cache->fb.stride = plane_state->color_plane[0].stride; in intel_fbc_update_state_cache()
[all …]
H A Dintel_atomic.c307 struct intel_plane_state *plane_state, in intel_atomic_setup_scaler() argument
331 if (plane_state && plane_state->hw.fb && in intel_atomic_setup_scaler()
332 plane_state->hw.fb->format->is_yuv && in intel_atomic_setup_scaler()
333 plane_state->hw.fb->format->num_planes > 1) { in intel_atomic_setup_scaler()
334 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_atomic_setup_scaler()
347 plane_state->planar_linked_plane; in intel_atomic_setup_scaler()
398 struct intel_plane_state *plane_state = NULL; in intel_atomic_setup_scalers() local
484 plane_state = intel_atomic_get_new_plane_state(intel_state, in intel_atomic_setup_scalers()
486 scaler_id = &plane_state->scaler_id; in intel_atomic_setup_scalers()
491 plane_state, scaler_id); in intel_atomic_setup_scalers()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce60/
H A Ddce60_hw_sequencer.c101 if (!pipe_ctx->plane_state) in dce60_should_enable_fbc()
105 if (pipe_ctx->plane_state->tiling_info.gfx8.array_mode == DC_ARRAY_LINEAR_GENERAL) in dce60_should_enable_fbc()
148 default_adjust.in_color_space = pipe_ctx->plane_state->color_space; in dce60_set_default_colors()
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()
325 mi->funcs->set_blank(mi, pipe_ctx->plane_state->visible); in dce60_program_front_end_for_pipe()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/basics/
H 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_hwseq.c597 pipe_ctx->plane_state = NULL; in dcn20_plane_atomic_disable()
839 struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state) in dcn20_set_blend_lut() argument
845 if (plane_state->blend_tf) { in dcn20_set_blend_lut()
846 if (plane_state->blend_tf->type == TF_TYPE_HWPWL) in dcn20_set_blend_lut()
847 blend_lut = &plane_state->blend_tf->pwl; in dcn20_set_blend_lut()
848 else if (plane_state->blend_tf->type == TF_TYPE_DISTRIBUTED_POINTS) { in dcn20_set_blend_lut()
850 plane_state->blend_tf, in dcn20_set_blend_lut()
861 struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state) in dcn20_set_shaper_3dlut() argument
867 if (plane_state->in_shaper_func) { in dcn20_set_shaper_3dlut()
868 if (plane_state->in_shaper_func->type == TF_TYPE_HWPWL) in dcn20_set_shaper_3dlut()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_hw_sequencer.c103 !pipe_ctx->stream || !pipe_ctx->plane_state || in dcn10_lock_all_pipes()
1135 pipe_ctx->plane_state = NULL; in dcn10_plane_atomic_disable()
1536 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local
1538 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo()
1539 if (sec_split && plane_state->address.type == PLN_ADDR_TYPE_GRPH_STEREO && in patch_address_for_sbs_tb_stereo()
1544 *addr = plane_state->address.grph_stereo.left_addr; in patch_address_for_sbs_tb_stereo()
1545 plane_state->address.grph_stereo.left_addr = in patch_address_for_sbs_tb_stereo()
1546 plane_state->address.grph_stereo.right_addr; in patch_address_for_sbs_tb_stereo()
1550 plane_state->address.type != PLN_ADDR_TYPE_GRPH_STEREO) { in patch_address_for_sbs_tb_stereo()
1551 plane_state->address.type = PLN_ADDR_TYPE_GRPH_STEREO; in patch_address_for_sbs_tb_stereo()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/
H A Ddrm_damage_helper.c121 struct drm_plane_state *plane_state) in drm_atomic_helper_check_plane_damage() argument
125 if (plane_state->crtc) { in drm_atomic_helper_check_plane_damage()
127 plane_state->crtc); in drm_atomic_helper_check_plane_damage()
133 drm_property_blob_put(plane_state->fb_damage_clips); in drm_atomic_helper_check_plane_damage()
134 plane_state->fb_damage_clips = NULL; in drm_atomic_helper_check_plane_damage()
213 struct drm_plane_state *plane_state; in drm_atomic_helper_dirtyfb() local
224 plane_state = drm_atomic_get_plane_state(state, plane); in drm_atomic_helper_dirtyfb()
225 if (IS_ERR(plane_state)) { in drm_atomic_helper_dirtyfb()
226 ret = PTR_ERR(plane_state); in drm_atomic_helper_dirtyfb()
230 drm_property_replace_blob(&plane_state->fb_damage_clips, in drm_atomic_helper_dirtyfb()
H A Ddrm_atomic_helper.c77 struct drm_plane_state *plane_state, in drm_atomic_helper_plane_changed() argument
92 if (plane_state->crtc) { in drm_atomic_helper_plane_changed()
93 crtc_state = drm_atomic_get_new_crtc_state(state, plane_state->crtc); in drm_atomic_helper_plane_changed()
790 int drm_atomic_helper_check_plane_state(struct drm_plane_state *plane_state, in drm_atomic_helper_check_plane_state() argument
797 struct drm_framebuffer *fb = plane_state->fb; in drm_atomic_helper_check_plane_state()
798 struct drm_rect *src = &plane_state->src; in drm_atomic_helper_check_plane_state()
799 struct drm_rect *dst = &plane_state->dst; in drm_atomic_helper_check_plane_state()
800 unsigned int rotation = plane_state->rotation; in drm_atomic_helper_check_plane_state()
804 WARN_ON(plane_state->crtc && plane_state->crtc != crtc_state->crtc); in drm_atomic_helper_check_plane_state()
806 *src = drm_plane_state_src(plane_state); in drm_atomic_helper_check_plane_state()
[all …]
H A Ddrm_atomic.c468 struct drm_plane_state *plane_state; in drm_atomic_get_plane_state() local
477 plane_state = drm_atomic_get_existing_plane_state(state, plane); in drm_atomic_get_plane_state()
478 if (plane_state) in drm_atomic_get_plane_state()
479 return plane_state; in drm_atomic_get_plane_state()
485 plane_state = plane->funcs->atomic_duplicate_state(plane); in drm_atomic_get_plane_state()
486 if (!plane_state) in drm_atomic_get_plane_state()
489 state->planes[index].state = plane_state; in drm_atomic_get_plane_state()
492 state->planes[index].new_state = plane_state; in drm_atomic_get_plane_state()
493 plane_state->state = state; in drm_atomic_get_plane_state()
496 plane->base.id, plane->name, plane_state, state); in drm_atomic_get_plane_state()
[all …]
H A Ddrm_atomic_state_helper.c243 void __drm_atomic_helper_plane_state_reset(struct drm_plane_state *plane_state, in __drm_atomic_helper_plane_state_reset() argument
246 plane_state->plane = plane; in __drm_atomic_helper_plane_state_reset()
247 plane_state->rotation = DRM_MODE_ROTATE_0; in __drm_atomic_helper_plane_state_reset()
249 plane_state->alpha = DRM_BLEND_ALPHA_OPAQUE; in __drm_atomic_helper_plane_state_reset()
250 plane_state->pixel_blend_mode = DRM_MODE_BLEND_PREMULTI; in __drm_atomic_helper_plane_state_reset()
267 struct drm_plane_state *plane_state) in __drm_atomic_helper_plane_reset() argument
269 if (plane_state) in __drm_atomic_helper_plane_reset()
270 __drm_atomic_helper_plane_state_reset(plane_state, plane); in __drm_atomic_helper_plane_reset()
272 plane->state = plane_state; in __drm_atomic_helper_plane_reset()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/mediatek/
H A Dmtk_drm_crtc.c318 struct mtk_plane_state *plane_state; in mtk_crtc_ddp_hw_init() local
322 plane_state = to_mtk_plane_state(plane->state); in mtk_crtc_ddp_hw_init()
326 plane_state, NULL); in mtk_crtc_ddp_hw_init()
401 struct mtk_plane_state *plane_state; in mtk_crtc_ddp_config() local
403 plane_state = to_mtk_plane_state(plane->state); in mtk_crtc_ddp_config()
405 if (!plane_state->pending.config) in mtk_crtc_ddp_config()
413 plane_state, in mtk_crtc_ddp_config()
415 plane_state->pending.config = false; in mtk_crtc_ddp_config()
423 struct mtk_plane_state *plane_state; in mtk_crtc_ddp_config() local
425 plane_state = to_mtk_plane_state(plane->state); in mtk_crtc_ddp_config()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_hw_sequencer.c249 const struct dc_plane_state *plane_state) in build_prescale_params() argument
253 switch (plane_state->format) { in build_prescale_params()
277 const struct dc_plane_state *plane_state) in dce110_set_input_transfer_func() argument
287 if (plane_state->in_transfer_func) in dce110_set_input_transfer_func()
288 tf = plane_state->in_transfer_func; in dce110_set_input_transfer_func()
290 build_prescale_params(&prescale_params, plane_state); in dce110_set_input_transfer_func()
293 if (plane_state->gamma_correction && in dce110_set_input_transfer_func()
294 !plane_state->gamma_correction->is_identity && in dce110_set_input_transfer_func()
295 dce_use_lut(plane_state->format)) in dce110_set_input_transfer_func()
296 ipp->funcs->ipp_program_input_lut(ipp, plane_state->gamma_correction); in dce110_set_input_transfer_func()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_hwseq.c70 struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state) in dcn30_set_blend_lut() argument
76 if (plane_state->blend_tf) { in dcn30_set_blend_lut()
77 if (plane_state->blend_tf->type == TF_TYPE_HWPWL) in dcn30_set_blend_lut()
78 blend_lut = &plane_state->blend_tf->pwl; in dcn30_set_blend_lut()
79 else if (plane_state->blend_tf->type == TF_TYPE_DISTRIBUTED_POINTS) { in dcn30_set_blend_lut()
81 plane_state->blend_tf, &dpp_base->regamma_params, false); in dcn30_set_blend_lut()
144 const struct dc_plane_state *plane_state) in dcn30_set_input_transfer_func() argument
152 if (dpp_base == NULL || plane_state == NULL) in dcn30_set_input_transfer_func()
157 if (plane_state->in_transfer_func && in dcn30_set_input_transfer_func()
158 plane_state->in_transfer_func->type == TF_TYPE_PREDEFINED) in dcn30_set_input_transfer_func()
[all …]
/OK3568_Linux_fs/kernel/include/drm/
H A Ddrm_simple_kms_helper.h64 struct drm_plane_state *plane_state);
92 struct drm_plane_state *plane_state,
123 struct drm_plane_state *plane_state);
133 struct drm_plane_state *plane_state);
/OK3568_Linux_fs/kernel/drivers/gpu/drm/zte/
H A Dzx_plane.c49 struct drm_plane_state *plane_state) in zx_vl_plane_atomic_check() argument
51 struct drm_framebuffer *fb = plane_state->fb; in zx_vl_plane_atomic_check()
52 struct drm_crtc *crtc = plane_state->crtc; in zx_vl_plane_atomic_check()
60 crtc_state = drm_atomic_get_existing_crtc_state(plane_state->state, in zx_vl_plane_atomic_check()
70 if (!plane_state->crtc) in zx_vl_plane_atomic_check()
73 return drm_atomic_helper_check_plane_state(plane_state, crtc_state, in zx_vl_plane_atomic_check()
278 struct drm_plane_state *plane_state) in zx_gl_plane_atomic_check() argument
280 struct drm_framebuffer *fb = plane_state->fb; in zx_gl_plane_atomic_check()
281 struct drm_crtc *crtc = plane_state->crtc; in zx_gl_plane_atomic_check()
287 crtc_state = drm_atomic_get_existing_crtc_state(plane_state->state, in zx_gl_plane_atomic_check()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/armada/
H A Darmada_overlay.c258 struct drm_plane_state *plane_state; in armada_overlay_plane_update() local
270 plane_state = drm_atomic_get_plane_state(state, plane); in armada_overlay_plane_update()
271 if (IS_ERR(plane_state)) { in armada_overlay_plane_update()
272 ret = PTR_ERR(plane_state); in armada_overlay_plane_update()
276 ret = drm_atomic_set_crtc_for_plane(plane_state, crtc); in armada_overlay_plane_update()
280 drm_atomic_set_fb_for_plane(plane_state, fb); in armada_overlay_plane_update()
281 plane_state->crtc_x = crtc_x; in armada_overlay_plane_update()
282 plane_state->crtc_y = crtc_y; in armada_overlay_plane_update()
283 plane_state->crtc_h = crtc_h; in armada_overlay_plane_update()
284 plane_state->crtc_w = crtc_w; in armada_overlay_plane_update()
[all …]

12345