| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_surface.c | 40 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.is_identity = true; in dc_plane_construct() 46 plane_state->in_transfer_func.type = TF_TYPE_BYPASS; in dc_plane_construct() 48 plane_state->in_shaper_func.type = TF_TYPE_BYPASS; in dc_plane_construct() 50 plane_state->lut3d_func.state.raw = 0; in dc_plane_construct() 52 plane_state->blend_tf.type = TF_TYPE_BYPASS; in dc_plane_construct() 54 plane_state->pre_multiplied_alpha = true; in dc_plane_construct() 58 void dc_plane_destruct(struct dc_plane_state *plane_state) in dc_plane_destruct() argument 68 uint8_t dc_plane_get_pipe_mask(struct dc_state *dc_state, const struct dc_plane_state *plane_state) in dc_plane_get_pipe_mask() argument [all …]
|
| H A D | dc_resource.c | 1153 &pipe_ctx->plane_state->clip_rect); in calculate_recout() 1182 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; in calculate_scaling_ratios() local 1184 struct rect surf_src = plane_state->src_rect; in calculate_scaling_ratios() 1191 if (pipe_ctx->plane_state->rotation == ROTATION_ANGLE_90 || in calculate_scaling_ratios() 1192 pipe_ctx->plane_state->rotation == ROTATION_ANGLE_270) in calculate_scaling_ratios() 1197 plane_state->dst_rect.width); in calculate_scaling_ratios() 1200 plane_state->dst_rect.height); in calculate_scaling_ratios() 1298 const struct dc_plane_state *plane_state = pipe_ctx->plane_state; in calculate_inits_and_viewports() local 1300 struct rect src = plane_state->src_rect; in calculate_inits_and_viewports() 1313 pipe_ctx, &plane_state->dst_rect); in calculate_inits_and_viewports() [all …]
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_fbc.c | 144 static unsigned int intel_fbc_plane_stride(const struct intel_plane_state *plane_state) in intel_fbc_plane_stride() argument 146 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_fbc_plane_stride() 149 stride = plane_state->view.color_plane[0].mapping_stride; in intel_fbc_plane_stride() 150 if (!drm_rotation_90_or_270(plane_state->hw.rotation)) in intel_fbc_plane_stride() 156 static unsigned int intel_fbc_cfb_cpp(const struct intel_plane_state *plane_state) in intel_fbc_cfb_cpp() argument 158 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_fbc_cfb_cpp() 165 static unsigned int intel_fbc_plane_cfb_stride(const struct intel_plane_state *plane_state) in intel_fbc_plane_cfb_stride() argument 167 unsigned int cpp = intel_fbc_cfb_cpp(plane_state); in intel_fbc_plane_cfb_stride() 169 return intel_fbc_plane_stride(plane_state) * cpp; in intel_fbc_plane_cfb_stride() 216 static unsigned int intel_fbc_cfb_stride(const struct intel_plane_state *plane_state) in intel_fbc_cfb_stride() argument [all …]
|
| H A D | intel_plane.c | 65 static void intel_plane_state_reset(struct intel_plane_state *plane_state, in intel_plane_state_reset() argument 68 memset(plane_state, 0, sizeof(*plane_state)); in intel_plane_state_reset() 70 __drm_atomic_helper_plane_state_reset(&plane_state->uapi, &plane->base); in intel_plane_state_reset() 72 plane_state->scaler_id = -1; in intel_plane_state_reset() 77 struct intel_plane_state *plane_state; in intel_plane_alloc() local 84 plane_state = kzalloc_obj(*plane_state); in intel_plane_alloc() 85 if (!plane_state) { in intel_plane_alloc() 90 intel_plane_state_reset(plane_state, plane); in intel_plane_alloc() 92 plane->base.state = &plane_state->uapi; in intel_plane_alloc() 162 struct intel_plane_state *plane_state = to_intel_plane_state(state); in intel_plane_destroy_state() local [all …]
|
| H A D | intel_fb.c | 1053 const struct intel_plane_state *plane_state, in intel_plane_adjust_aligned_offset() argument 1057 return intel_adjust_aligned_offset(x, y, plane_state->hw.fb, color_plane, in intel_plane_adjust_aligned_offset() 1058 plane_state->hw.rotation, in intel_plane_adjust_aligned_offset() 1059 plane_state->view.color_plane[color_plane].mapping_stride, in intel_plane_adjust_aligned_offset() 1133 const struct intel_plane_state *plane_state, in intel_plane_compute_aligned_offset() argument 1136 struct intel_display *display = to_intel_display(plane_state); in intel_plane_compute_aligned_offset() 1137 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); in intel_plane_compute_aligned_offset() 1138 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_compute_aligned_offset() 1139 unsigned int rotation = plane_state->hw.rotation; in intel_plane_compute_aligned_offset() 1140 unsigned int pitch = plane_state->view.color_plane[color_plane].mapping_stride; in intel_plane_compute_aligned_offset() [all …]
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_gem_atomic_helper.c | 222 struct drm_plane_state *plane_state = plane->state; in __drm_gem_duplicate_shadow_plane_state() local 224 to_drm_shadow_plane_state(plane_state); in __drm_gem_duplicate_shadow_plane_state() 253 struct drm_plane_state *plane_state = plane->state; in drm_gem_duplicate_shadow_plane_state() local 256 if (!plane_state) in drm_gem_duplicate_shadow_plane_state() 292 struct drm_plane_state *plane_state) in drm_gem_destroy_shadow_plane_state() argument 295 to_drm_shadow_plane_state(plane_state); in drm_gem_destroy_shadow_plane_state() 360 int drm_gem_begin_shadow_fb_access(struct drm_plane *plane, struct drm_plane_state *plane_state) in drm_gem_begin_shadow_fb_access() argument 362 struct drm_shadow_plane_state *shadow_plane_state = to_drm_shadow_plane_state(plane_state); in drm_gem_begin_shadow_fb_access() 363 struct drm_framebuffer *fb = plane_state->fb; in drm_gem_begin_shadow_fb_access() 382 void drm_gem_end_shadow_fb_access(struct drm_plane *plane, struct drm_plane_state *plane_state) in drm_gem_end_shadow_fb_access() argument [all …]
|
| H A D | drm_damage_helper.c | 70 struct drm_plane_state *plane_state) in drm_atomic_helper_check_plane_damage() argument 74 if (plane_state->crtc) { in drm_atomic_helper_check_plane_damage() 76 plane_state->crtc); in drm_atomic_helper_check_plane_damage() 82 drm_property_blob_put(plane_state->fb_damage_clips); in drm_atomic_helper_check_plane_damage() 83 plane_state->fb_damage_clips = NULL; in drm_atomic_helper_check_plane_damage() 162 struct drm_plane_state *plane_state; in drm_atomic_helper_dirtyfb() local 173 plane_state = drm_atomic_get_plane_state(state, plane); in drm_atomic_helper_dirtyfb() 174 if (IS_ERR(plane_state)) { in drm_atomic_helper_dirtyfb() 175 ret = PTR_ERR(plane_state); in drm_atomic_helper_dirtyfb() 179 drm_property_replace_blob(&plane_state->fb_damage_clips, in drm_atomic_helper_dirtyfb()
|
| H A D | drm_atomic_state_helper.c | 246 void __drm_atomic_helper_plane_state_reset(struct drm_plane_state *plane_state, in __drm_atomic_helper_plane_state_reset() argument 251 plane_state->plane = plane; in __drm_atomic_helper_plane_state_reset() 252 plane_state->rotation = DRM_MODE_ROTATE_0; in __drm_atomic_helper_plane_state_reset() 254 plane_state->alpha = DRM_BLEND_ALPHA_OPAQUE; in __drm_atomic_helper_plane_state_reset() 255 plane_state->pixel_blend_mode = DRM_MODE_BLEND_PREMULTI; in __drm_atomic_helper_plane_state_reset() 261 plane_state->color_encoding = val; in __drm_atomic_helper_plane_state_reset() 268 plane_state->color_range = val; in __drm_atomic_helper_plane_state_reset() 273 plane_state->color_pipeline = NULL; in __drm_atomic_helper_plane_state_reset() 280 plane_state->zpos = val; in __drm_atomic_helper_plane_state_reset() 281 plane_state->normalized_zpos = val; in __drm_atomic_helper_plane_state_reset() [all …]
|
| H A D | drm_atomic_helper.c | 82 struct drm_plane_state *plane_state, in drm_atomic_helper_plane_changed() argument 97 if (plane_state->crtc) { in drm_atomic_helper_plane_changed() 98 crtc_state = drm_atomic_get_new_crtc_state(state, plane_state->crtc); in drm_atomic_helper_plane_changed() 893 int drm_atomic_helper_check_plane_state(struct drm_plane_state *plane_state, in drm_atomic_helper_check_plane_state() argument 900 struct drm_framebuffer *fb = plane_state->fb; in drm_atomic_helper_check_plane_state() 901 struct drm_rect *src = &plane_state->src; in drm_atomic_helper_check_plane_state() 902 struct drm_rect *dst = &plane_state->dst; in drm_atomic_helper_check_plane_state() 903 unsigned int rotation = plane_state->rotation; in drm_atomic_helper_check_plane_state() 907 WARN_ON(plane_state->crtc && plane_state->crtc != crtc_state->crtc); in drm_atomic_helper_check_plane_state() 909 *src = drm_plane_state_src(plane_state); in drm_atomic_helper_check_plane_state() [all …]
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_plane_helper_test.c | 82 static void check_src_eq(struct kunit *test, struct drm_plane_state *plane_state, in check_src_eq() argument 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() 96 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_equals(&plane_state->src, &expected), in check_src_eq() 98 DRM_RECT_FP_ARG(&plane_state->src), DRM_RECT_FP_ARG(&expected)); in check_src_eq() 101 static void check_crtc_eq(struct kunit *test, struct drm_plane_state *plane_state, in check_crtc_eq() argument 107 KUNIT_EXPECT_TRUE_MSG(test, drm_rect_equals(&plane_state->dst, &expected), in check_crtc_eq() 109 DRM_RECT_ARG(&plane_state->dst), DRM_RECT_ARG(&expected)); in check_crtc_eq() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn201/ |
| H A D | dcn201_hwseq.c | 62 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local 64 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 66 if (sec_split && plane_state->address.type == PLN_ADDR_TYPE_GRPH_STEREO && in patch_address_for_sbs_tb_stereo() 71 *addr = plane_state->address.grph_stereo.left_addr; in patch_address_for_sbs_tb_stereo() 72 plane_state->address.grph_stereo.left_addr = in patch_address_for_sbs_tb_stereo() 73 plane_state->address.grph_stereo.right_addr; in patch_address_for_sbs_tb_stereo() 77 plane_state->address.type != PLN_ADDR_TYPE_GRPH_STEREO) { in patch_address_for_sbs_tb_stereo() 78 plane_state->address.type = PLN_ADDR_TYPE_GRPH_STEREO; in patch_address_for_sbs_tb_stereo() 79 plane_state->address.grph_stereo.right_addr = in patch_address_for_sbs_tb_stereo() 80 plane_state->address.grph_stereo.left_addr; in patch_address_for_sbs_tb_stereo() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn20/ |
| H A D | dcn20_hwseq.c | 731 pipe_ctx->plane_state = NULL; in dcn20_plane_atomic_disable() 1055 struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state) in dcn20_set_blend_lut() argument 1061 if (plane_state->blend_tf.type == TF_TYPE_HWPWL) in dcn20_set_blend_lut() 1062 blend_lut = &plane_state->blend_tf.pwl; in dcn20_set_blend_lut() 1063 else if (plane_state->blend_tf.type == TF_TYPE_DISTRIBUTED_POINTS) { in dcn20_set_blend_lut() 1064 cm_helper_translate_curve_to_hw_format(plane_state->ctx, in dcn20_set_blend_lut() 1065 &plane_state->blend_tf, in dcn20_set_blend_lut() 1075 struct pipe_ctx *pipe_ctx, const struct dc_plane_state *plane_state) in dcn20_set_shaper_3dlut() argument 1081 if (plane_state->in_shaper_func.type == TF_TYPE_HWPWL) in dcn20_set_shaper_3dlut() 1082 shaper_lut = &plane_state->in_shaper_func.pwl; in dcn20_set_shaper_3dlut() [all …]
|
| /linux/drivers/gpu/drm/sysfb/ |
| H A D | drm_sysfb_modeset.c | 242 struct drm_plane_state *plane_state) in drm_sysfb_plane_helper_begin_fb_access() argument 245 struct drm_sysfb_plane_state *sysfb_plane_state = to_drm_sysfb_plane_state(plane_state); in drm_sysfb_plane_helper_begin_fb_access() 246 struct drm_framebuffer *fb = plane_state->fb; in drm_sysfb_plane_helper_begin_fb_access() 252 ret = drm_gem_begin_shadow_fb_access(plane, plane_state); in drm_sysfb_plane_helper_begin_fb_access() 261 crtc_state = drm_atomic_get_new_crtc_state(plane_state->state, plane_state->crtc); in drm_sysfb_plane_helper_begin_fb_access() 280 drm_gem_end_shadow_fb_access(plane, plane_state); in drm_sysfb_plane_helper_begin_fb_access() 333 struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane); in drm_sysfb_plane_helper_atomic_update() local 335 struct drm_sysfb_plane_state *sysfb_plane_state = to_drm_sysfb_plane_state(plane_state); in drm_sysfb_plane_helper_atomic_update() 337 struct drm_framebuffer *fb = plane_state->fb; in drm_sysfb_plane_helper_atomic_update() 339 struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, plane_state->crtc); in drm_sysfb_plane_helper_atomic_update() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/ |
| H A D | dcn401_hwseq.c | 95 if (pipe_ctx->plane_state) in dcn401_program_gamut_remap() 96 ASSERT(pipe_ctx->plane_state->mcm_location == MPCC_MOVABLE_CM_LOCATION_BEFORE); in dcn401_program_gamut_remap() 103 if (pipe_ctx->plane_state && in dcn401_program_gamut_remap() 104 pipe_ctx->plane_state->gamut_remap_matrix.enable_remap == true) { in dcn401_program_gamut_remap() 108 pipe_ctx->plane_state->gamut_remap_matrix.matrix[i]; in dcn401_program_gamut_remap() 381 if (!pipe_ctx->plane_state) in dcn401_get_mcm_lut_xable_from_pipe_ctx() 383 shaper_3dlut_setting = pipe_ctx->plane_state->mcm_shaper_3dlut_setting; in dcn401_get_mcm_lut_xable_from_pipe_ctx() 384 lut1d_enable = pipe_ctx->plane_state->mcm_lut1d_enable; in dcn401_get_mcm_lut_xable_from_pipe_ctx() 386 pipe_ctx->plane_state->mcm_location = MPCC_MOVABLE_CM_LOCATION_BEFORE; in dcn401_get_mcm_lut_xable_from_pipe_ctx() 611 const struct dc_plane_state *plane_state) in dcn401_set_mcm_luts() argument [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn10/ |
| H A D | dcn10_hwseq.c | 240 (!pipe_ctx->plane_state && !old_pipe_ctx->plane_state) || in dcn10_lock_all_pipes() 1551 pipe_ctx->plane_state = NULL; in dcn10_plane_atomic_disable() 1982 struct dc_plane_state *plane_state = pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() local 1984 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 1985 if (sec_split && plane_state->address.type == PLN_ADDR_TYPE_GRPH_STEREO && in patch_address_for_sbs_tb_stereo() 1990 *addr = plane_state->address.grph_stereo.left_addr; in patch_address_for_sbs_tb_stereo() 1991 plane_state->address.grph_stereo.left_addr = in patch_address_for_sbs_tb_stereo() 1992 plane_state->address.grph_stereo.right_addr; in patch_address_for_sbs_tb_stereo() 1996 plane_state->address.type != PLN_ADDR_TYPE_GRPH_STEREO) { in patch_address_for_sbs_tb_stereo() 1997 plane_state->address.type = PLN_ADDR_TYPE_GRPH_STEREO; in patch_address_for_sbs_tb_stereo() [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);
|
| H 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/drivers/gpu/drm/amd/display/dc/resource/dcn32/ |
| H A D | dcn32_resource_helpers.c | 127 pipe->plane_state = NULL; in dcn32_merge_pipes_for_subvp() 135 } else if (pipe->top_pipe && pipe->top_pipe->plane_state == pipe->plane_state) { in dcn32_merge_pipes_for_subvp() 145 pipe->plane_state = NULL; in dcn32_merge_pipes_for_subvp() 164 if (!pipe->plane_state) in dcn32_all_pipes_have_stream_and_plane() 206 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() 223 if (pipe->stream->timing.v_addressable != pipe->plane_state->dst_rect.height && in dcn32_is_center_timing() 224 pipe->stream->timing.v_addressable != pipe->plane_state->src_rect.height) { in dcn32_is_center_timing() 262 …if (pipe_ctx->stream && pipe_ctx->plane_state && dc_state_get_pipe_subvp_type(context, pipe_ctx) !… in override_det_for_subvp() 277 …if (pipe_ctx->stream && pipe_ctx->plane_state && dc_state_get_pipe_subvp_type(context, pipe_ctx) !… in override_det_for_subvp() [all …]
|
| /linux/drivers/gpu/drm/mediatek/ |
| H A D | mtk_crtc.c | 306 struct mtk_plane_state *plane_state; in ddp_cmdq_cb() local 308 plane_state = to_mtk_plane_state(plane->state); in ddp_cmdq_cb() 310 plane_state->pending.config = false; in ddp_cmdq_cb() 318 struct mtk_plane_state *plane_state; in ddp_cmdq_cb() local 320 plane_state = to_mtk_plane_state(plane->state); in ddp_cmdq_cb() 322 plane_state->pending.async_config = false; in ddp_cmdq_cb() 419 struct mtk_plane_state *plane_state; in mtk_crtc_ddp_hw_init() local 423 plane_state = to_mtk_plane_state(plane->state); in mtk_crtc_ddp_hw_init() 426 plane_state->pending.enable = false; in mtk_crtc_ddp_hw_init() 430 plane_state, NULL); in mtk_crtc_ddp_hw_init() [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_color.c | 1105 struct drm_plane_state *plane_state) in amdgpu_dm_verify_lut3d_size() argument 1107 struct dm_plane_state *dm_plane_state = to_dm_plane_state(plane_state); in amdgpu_dm_verify_lut3d_size() 1419 __set_dm_plane_degamma(struct drm_plane_state *plane_state, in __set_dm_plane_degamma() argument 1423 struct dm_plane_state *dm_plane_state = to_dm_plane_state(plane_state); in __set_dm_plane_degamma() 1496 __set_dm_plane_colorop_degamma(struct drm_plane_state *plane_state, in __set_dm_plane_colorop_degamma() argument 1502 struct drm_atomic_state *state = plane_state->state; in __set_dm_plane_colorop_degamma() 1523 __set_dm_plane_colorop_3x4_matrix(struct drm_plane_state *plane_state, in __set_dm_plane_colorop_3x4_matrix() argument 1529 struct drm_atomic_state *state = plane_state->state; in __set_dm_plane_colorop_3x4_matrix() 1564 __set_dm_plane_colorop_multiplier(struct drm_plane_state *plane_state, in __set_dm_plane_colorop_multiplier() argument 1570 struct drm_atomic_state *state = plane_state->state; in __set_dm_plane_colorop_multiplier() [all …]
|
| /linux/drivers/gpu/drm/solomon/ |
| H A D | ssd130x.c | 1083 struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane); in ssd130x_primary_plane_atomic_check() local 1084 struct ssd130x_plane_state *ssd130x_state = to_ssd130x_plane_state(plane_state); in ssd130x_primary_plane_atomic_check() 1086 struct drm_crtc *crtc = plane_state->crtc; in ssd130x_primary_plane_atomic_check() 1095 ret = drm_atomic_helper_check_plane_state(plane_state, crtc_state, in ssd130x_primary_plane_atomic_check() 1101 else if (!plane_state->visible) in ssd130x_primary_plane_atomic_check() 1110 if (plane_state->fb->format != fi) { in ssd130x_primary_plane_atomic_check() 1132 struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane); in ssd132x_primary_plane_atomic_check() local 1133 struct ssd130x_plane_state *ssd130x_state = to_ssd130x_plane_state(plane_state); in ssd132x_primary_plane_atomic_check() 1135 struct drm_crtc *crtc = plane_state->crtc; in ssd132x_primary_plane_atomic_check() 1144 ret = drm_atomic_helper_check_plane_state(plane_state, crtc_state, in ssd132x_primary_plane_atomic_check() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/ |
| H A D | dml21_translation_helper.c | 434 const struct dc_plane_state *plane_state) in populate_dml21_surface_config_from_plane_state() argument 436 surface->plane0.pitch = plane_state->plane_size.surface_pitch; in populate_dml21_surface_config_from_plane_state() 437 surface->plane1.pitch = plane_state->plane_size.chroma_pitch; in populate_dml21_surface_config_from_plane_state() 438 surface->plane0.height = plane_state->plane_size.surface_size.height; in populate_dml21_surface_config_from_plane_state() 439 surface->plane0.width = plane_state->plane_size.surface_size.width; in populate_dml21_surface_config_from_plane_state() 440 surface->plane1.height = plane_state->plane_size.chroma_size.height; in populate_dml21_surface_config_from_plane_state() 441 surface->plane1.width = plane_state->plane_size.chroma_size.width; in populate_dml21_surface_config_from_plane_state() 442 surface->dcc.enable = plane_state->dcc.enable; in populate_dml21_surface_config_from_plane_state() 445 …surface->dcc.informative.fraction_of_zero_size_request_plane0 = plane_state->dcc.independent_64b_b… in populate_dml21_surface_config_from_plane_state() 446 …surface->dcc.informative.fraction_of_zero_size_request_plane1 = plane_state->dcc.independent_64b_b… in populate_dml21_surface_config_from_plane_state() [all …]
|
| /linux/drivers/gpu/drm/vkms/ |
| H A D | vkms_crtc.c | 119 struct drm_plane_state *plane_state; in vkms_crtc_atomic_check() local 130 plane_state = drm_atomic_get_new_plane_state(crtc_state->state, plane); in vkms_crtc_atomic_check() 131 WARN_ON(!plane_state); in vkms_crtc_atomic_check() 133 if (!plane_state->visible) in vkms_crtc_atomic_check() 146 plane_state = drm_atomic_get_new_plane_state(crtc_state->state, plane); in vkms_crtc_atomic_check() 148 if (!plane_state->visible) in vkms_crtc_atomic_check() 152 to_vkms_plane_state(plane_state); in vkms_crtc_atomic_check()
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
| H A D | dce110_hwseq.c | 256 const struct dc_plane_state *plane_state) in dce110_prescale_params() argument 260 switch (plane_state->format) { in dce110_prescale_params() 285 const struct dc_plane_state *plane_state) in dce110_set_input_transfer_func() argument 295 tf = &plane_state->in_transfer_func; in dce110_set_input_transfer_func() 297 dce110_prescale_params(&prescale_params, plane_state); in dce110_set_input_transfer_func() 300 if (!plane_state->gamma_correction.is_identity && in dce110_set_input_transfer_func() 301 dce_use_lut(plane_state->format)) in dce110_set_input_transfer_func() 302 ipp->funcs->ipp_program_input_lut(ipp, &plane_state->gamma_correction); in dce110_set_input_transfer_func() 2245 if (!pipe_ctx->plane_state) in should_enable_fbc() 2249 if (pipe_ctx->plane_state->tiling_info.gfx8.array_mode == DC_ARRAY_LINEAR_GENERAL) in should_enable_fbc() [all …]
|
| /linux/drivers/gpu/drm/sitronix/ |
| H A D | st7920.c | 345 struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane); in st7920_primary_plane_atomic_check() local 346 struct st7920_plane_state *st7920_state = to_st7920_plane_state(plane_state); in st7920_primary_plane_atomic_check() 348 struct drm_crtc *crtc = plane_state->crtc; in st7920_primary_plane_atomic_check() 357 ret = drm_atomic_helper_check_plane_state(plane_state, crtc_state, in st7920_primary_plane_atomic_check() 363 else if (!plane_state->visible) in st7920_primary_plane_atomic_check() 372 if (plane_state->fb->format != fi) { in st7920_primary_plane_atomic_check() 392 struct drm_plane_state *plane_state = drm_atomic_get_new_plane_state(state, plane); in st7920_primary_plane_atomic_update() local 394 struct drm_shadow_plane_state *shadow_plane_state = to_drm_shadow_plane_state(plane_state); in st7920_primary_plane_atomic_update() 395 struct drm_crtc_state *crtc_state = drm_atomic_get_new_crtc_state(state, plane_state->crtc); in st7920_primary_plane_atomic_update() 397 struct st7920_plane_state *st7920_plane_state = to_st7920_plane_state(plane_state); in st7920_primary_plane_atomic_update() [all …]
|