/linux/drivers/gpu/drm/loongson/ |
H A D | lsdc_plane.c | 52 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in lsdc_primary_atomic_check() local 53 struct drm_crtc *crtc = new_plane_state->crtc; in lsdc_primary_atomic_check() 61 return drm_atomic_helper_check_plane_state(new_plane_state, in lsdc_primary_atomic_check() 74 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, plane); in lsdc_primary_atomic_update() local 75 struct drm_framebuffer *new_fb = new_plane_state->fb; in lsdc_primary_atomic_update() 79 fb_addr += lsdc_get_fb_offset(new_fb, new_plane_state); in lsdc_primary_atomic_update() 271 struct drm_plane_state *new_plane_state; in ls7a1000_cursor_plane_atomic_check() local 275 new_plane_state = drm_atomic_get_new_plane_state(state, plane); in ls7a1000_cursor_plane_atomic_check() 277 crtc = new_plane_state->crtc; in ls7a1000_cursor_plane_atomic_check() 283 if (new_plane_state->crtc_w != 32 || new_plane_state->crtc_h != 32) { in ls7a1000_cursor_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/omapdrm/ |
H A D | omap_plane.c | 203 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in omap_plane_atomic_check() local 208 struct omap_plane_state *omap_state = to_omap_plane_state(new_plane_state); in omap_plane_atomic_check() 228 crtc = new_plane_state->crtc ? new_plane_state->crtc : plane->state->crtc; in omap_plane_atomic_check() 243 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in omap_plane_atomic_check() 250 old_plane_state->visible, new_plane_state->visible); in omap_plane_atomic_check() 252 if (!new_plane_state->visible) { in omap_plane_atomic_check() 260 if (new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0) in omap_plane_atomic_check() 263 if (new_plane_state->crtc_x + new_plane_state->crtc_w > crtc_state->adjusted_mode.hdisplay) in omap_plane_atomic_check() 266 if (new_plane_state->crtc_y + new_plane_state->crtc_h > crtc_state->adjusted_mode.vdisplay) in omap_plane_atomic_check() 270 if (new_plane_state->src_h > max_height || new_plane_state->crtc_h > height) in omap_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/tidss/ |
H A D | tidss_plane.c | 26 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in tidss_plane_atomic_check() local 39 if (!new_plane_state->crtc) { in tidss_plane_atomic_check() 45 new_plane_state->visible = false; in tidss_plane_atomic_check() 50 new_plane_state->crtc); in tidss_plane_atomic_check() 54 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in tidss_plane_atomic_check() 72 finfo = drm_format_info(new_plane_state->fb->format->format); in tidss_plane_atomic_check() 74 if ((new_plane_state->src_x >> 16) % finfo->hsub != 0) { in tidss_plane_atomic_check() 77 __func__, (new_plane_state->src_x >> 16), finfo->hsub); in tidss_plane_atomic_check() 81 if ((new_plane_state->src_y >> 16) % finfo->vsub != 0) { in tidss_plane_atomic_check() 84 __func__, (new_plane_state->src_y >> 16), finfo->vsub); in tidss_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/armada/ |
H A D | armada_plane.c | 84 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in armada_drm_plane_atomic_check() local 86 struct armada_plane_state *st = to_armada_plane_state(new_plane_state); in armada_drm_plane_atomic_check() 87 struct drm_crtc *crtc = new_plane_state->crtc; in armada_drm_plane_atomic_check() 92 if (!new_plane_state->fb || WARN_ON(!new_plane_state->crtc)) { in armada_drm_plane_atomic_check() 93 new_plane_state->visible = false; in armada_drm_plane_atomic_check() 103 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in armada_drm_plane_atomic_check() 111 if ((new_plane_state->dst.y1 | new_plane_state->dst.y2) & 1) in armada_drm_plane_atomic_check() 113 st->src_hw = drm_rect_height(&new_plane_state->src) >> 17; in armada_drm_plane_atomic_check() 114 st->dst_yx = new_plane_state->dst.y1 >> 1; in armada_drm_plane_atomic_check() 115 st->dst_hw = drm_rect_height(&new_plane_state->dst) >> 1; in armada_drm_plane_atomic_check() [all …]
|
/linux/include/drm/ |
H A D | drm_atomic_helper.h | 226 struct drm_plane_state *new_plane_state) in drm_atomic_plane_enabling() argument 233 WARN_ON((!new_plane_state->crtc && new_plane_state->fb) || in drm_atomic_plane_enabling() 234 (new_plane_state->crtc && !new_plane_state->fb)); in drm_atomic_plane_enabling() 236 return !old_plane_state->crtc && new_plane_state->crtc; in drm_atomic_plane_enabling() 253 struct drm_plane_state *new_plane_state) in drm_atomic_plane_disabling() argument 260 WARN_ON((new_plane_state->crtc == NULL && new_plane_state->fb != NULL) || in drm_atomic_plane_disabling() 261 (new_plane_state->crtc != NULL && new_plane_state->fb == NULL)); in drm_atomic_plane_disabling() 263 return old_plane_state->crtc && !new_plane_state->crtc; in drm_atomic_plane_disabling()
|
H A D | drm_atomic.h | 940 #define for_each_oldnew_plane_in_state(__state, plane, old_plane_state, new_plane_state, __i) \ argument 948 (new_plane_state) = (__state)->planes[__i].new_state, 1)) 963 #define for_each_oldnew_plane_in_state_reverse(__state, plane, old_plane_state, new_plane_state, __… argument 970 (new_plane_state) = (__state)->planes[__i].new_state, 1)) 980 #define for_each_new_plane_in_state_reverse(__state, plane, new_plane_state, __i) \ argument 986 (new_plane_state) = (__state)->planes[__i].new_state, 1)) 1017 #define for_each_new_plane_in_state(__state, plane, new_plane_state, __i) \ argument 1024 (new_plane_state) = (__state)->planes[__i].new_state, \ 1025 (void)(new_plane_state) /* Only to avoid unused-but-set-variable warning */, 1))
|
/linux/drivers/gpu/drm/mediatek/ |
H A D | mtk_plane.c | 106 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_async_check() local 111 if (plane != new_plane_state->crtc->cursor) in mtk_plane_atomic_async_check() 120 ret = mtk_crtc_plane_check(new_plane_state->crtc, plane, in mtk_plane_atomic_async_check() 121 to_mtk_plane_state(new_plane_state)); in mtk_plane_atomic_async_check() 125 crtc_state = drm_atomic_get_existing_crtc_state(state, new_plane_state->crtc); in mtk_plane_atomic_async_check() 220 struct mtk_plane_state *new_plane_state = to_mtk_plane_state(plane->state); in mtk_plane_atomic_async_update() local 233 mtk_plane_update_new_state(new_state, new_plane_state); in mtk_plane_atomic_async_update() 236 new_plane_state->pending.async_dirty = true; in mtk_plane_atomic_async_update() 253 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in mtk_plane_atomic_check() local 255 struct drm_framebuffer *fb = new_plane_state->fb; in mtk_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/kmb/ |
H A D | kmb_plane.c | 94 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in kmb_plane_atomic_check() local 107 fb = new_plane_state->fb; in kmb_plane_atomic_check() 108 if (!fb || !new_plane_state->crtc) in kmb_plane_atomic_check() 115 if (new_plane_state->crtc_w > KMB_FB_MAX_WIDTH || in kmb_plane_atomic_check() 116 new_plane_state->crtc_h > KMB_FB_MAX_HEIGHT || in kmb_plane_atomic_check() 117 new_plane_state->crtc_w < KMB_FB_MIN_WIDTH || in kmb_plane_atomic_check() 118 new_plane_state->crtc_h < KMB_FB_MIN_HEIGHT) in kmb_plane_atomic_check() 133 new_plane_state->crtc); in kmb_plane_atomic_check() 134 return drm_atomic_helper_check_plane_state(new_plane_state, in kmb_plane_atomic_check() 346 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in kmb_plane_atomic_update() local [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_atomic_helper.c | 992 struct drm_plane_state *new_plane_state, *old_plane_state; in drm_atomic_helper_check_planes() local 995 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_helper_check_planes() 1002 drm_atomic_helper_plane_changed(state, old_plane_state, new_plane_state, plane); in drm_atomic_helper_check_planes() 1004 drm_atomic_helper_check_plane_damage(state, new_plane_state); in drm_atomic_helper_check_planes() 1302 struct drm_plane_state *new_plane_state; in drm_atomic_helper_update_legacy_modeset_state() local 1307 new_plane_state = in drm_atomic_helper_update_legacy_modeset_state() 1310 if (new_plane_state && new_plane_state->crtc == crtc) { in drm_atomic_helper_update_legacy_modeset_state() 1311 crtc->x = new_plane_state->src_x >> 16; in drm_atomic_helper_update_legacy_modeset_state() 1312 crtc->y = new_plane_state->src_y >> 16; in drm_atomic_helper_update_legacy_modeset_state() 1545 struct drm_plane_state *new_plane_state; in set_fence_deadline() local [all …]
|
H A D | drm_atomic.c | 573 const struct drm_plane_state *new_plane_state) in plane_switching_crtc() argument 575 if (!old_plane_state->crtc || !new_plane_state->crtc) in plane_switching_crtc() 578 if (old_plane_state->crtc == new_plane_state->crtc) in plane_switching_crtc() 600 const struct drm_plane_state *new_plane_state) in drm_atomic_plane_check() argument 602 struct drm_plane *plane = new_plane_state->plane; in drm_atomic_plane_check() 603 struct drm_crtc *crtc = new_plane_state->crtc; in drm_atomic_plane_check() 604 const struct drm_framebuffer *fb = new_plane_state->fb; in drm_atomic_plane_check() 643 if (new_plane_state->crtc_w > INT_MAX || in drm_atomic_plane_check() 644 new_plane_state->crtc_x > INT_MAX - (int32_t) new_plane_state->crtc_w || in drm_atomic_plane_check() 645 new_plane_state->crtc_h > INT_MAX || in drm_atomic_plane_check() [all …]
|
H A D | drm_blend.c | 516 struct drm_plane_state *old_plane_state, *new_plane_state; in drm_atomic_normalize_zpos() local 519 for_each_oldnew_plane_in_state(state, plane, old_plane_state, new_plane_state, i) { in drm_atomic_normalize_zpos() 520 crtc = new_plane_state->crtc; in drm_atomic_normalize_zpos() 523 if (old_plane_state->zpos != new_plane_state->zpos) { in drm_atomic_normalize_zpos()
|
/linux/drivers/gpu/drm/imx/dcss/ |
H A D | dcss-plane.c | 144 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in dcss_plane_atomic_check() local 148 struct drm_framebuffer *fb = new_plane_state->fb; in dcss_plane_atomic_check() 156 if (!fb || !new_plane_state->crtc) in dcss_plane_atomic_check() 163 new_plane_state->crtc); in dcss_plane_atomic_check() 168 if (!dcss_plane_is_source_size_allowed(new_plane_state->src_w >> 16, in dcss_plane_atomic_check() 169 new_plane_state->src_h >> 16, in dcss_plane_atomic_check() 178 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in dcss_plane_atomic_check() 184 if (!new_plane_state->visible) in dcss_plane_atomic_check() 190 new_plane_state->rotation)) { in dcss_plane_atomic_check() 195 if ((new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0 || in dcss_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/hisilicon/hibmc/ |
H A D | hibmc_drm_de.c | 58 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in hibmc_plane_atomic_check() local 60 struct drm_framebuffer *fb = new_plane_state->fb; in hibmc_plane_atomic_check() 61 struct drm_crtc *crtc = new_plane_state->crtc; in hibmc_plane_atomic_check() 63 u32 src_w = new_plane_state->src_w >> 16; in hibmc_plane_atomic_check() 64 u32 src_h = new_plane_state->src_h >> 16; in hibmc_plane_atomic_check() 73 if (src_w != new_plane_state->crtc_w || src_h != new_plane_state->crtc_h) { in hibmc_plane_atomic_check() 78 if (new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0) { in hibmc_plane_atomic_check() 86 if (new_plane_state->crtc_x + new_plane_state->crtc_w > in hibmc_plane_atomic_check() 88 new_plane_state->crtc_y + new_plane_state->crtc_h > in hibmc_plane_atomic_check() 94 if (new_plane_state->fb->pitches[0] % 128 != 0) { in hibmc_plane_atomic_check()
|
/linux/drivers/gpu/drm/arm/ |
H A D | malidp_planes.c | 495 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in malidp_de_plane_check() local 498 struct malidp_plane_state *ms = to_malidp_plane_state(new_plane_state); in malidp_de_plane_check() 499 bool rotated = new_plane_state->rotation & MALIDP_ROTATED_MASK; in malidp_de_plane_check() 501 u16 pixel_alpha = new_plane_state->pixel_blend_mode; in malidp_de_plane_check() 505 if (!new_plane_state->crtc || WARN_ON(!new_plane_state->fb)) in malidp_de_plane_check() 508 fb = new_plane_state->fb; in malidp_de_plane_check() 534 if ((new_plane_state->src_x >> 16) % block_w || (new_plane_state->src_y >> 16) % block_h) { in malidp_de_plane_check() 539 if ((new_plane_state->crtc_w > mp->hwdev->max_line_size) || in malidp_de_plane_check() 540 (new_plane_state->crtc_h > mp->hwdev->max_line_size) || in malidp_de_plane_check() 541 (new_plane_state->crtc_w < mp->hwdev->min_line_size) || in malidp_de_plane_check() [all …]
|
H A D | hdlcd_crtc.c | 233 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in hdlcd_plane_atomic_check() local 238 u32 src_h = new_plane_state->src_h >> 16; in hdlcd_plane_atomic_check() 249 if (!new_plane_state->fb && crtc_state->active) in hdlcd_plane_atomic_check() 251 return drm_atomic_helper_check_plane_state(new_plane_state, in hdlcd_plane_atomic_check() 264 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in hdlcd_plane_atomic_update() local 266 struct drm_framebuffer *fb = new_plane_state->fb; in hdlcd_plane_atomic_update() 274 dest_h = drm_rect_height(&new_plane_state->dst); in hdlcd_plane_atomic_update() 275 scanout_start = drm_fb_dma_get_gem_addr(fb, new_plane_state, 0); in hdlcd_plane_atomic_update()
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
H A D | dpu_plane.c | 795 struct drm_plane_state *new_plane_state, in dpu_plane_atomic_check_nosspp() argument 802 struct dpu_plane_state *pstate = to_dpu_plane_state(new_plane_state); in dpu_plane_atomic_check_nosspp() 811 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in dpu_plane_atomic_check_nosspp() 819 if (!new_plane_state->visible) in dpu_plane_atomic_check_nosspp() 830 drm_rect_fp_to_int(&pipe_cfg->src_rect, &new_plane_state->src); in dpu_plane_atomic_check_nosspp() 832 pipe_cfg->dst_rect = new_plane_state->dst; in dpu_plane_atomic_check_nosspp() 834 fb_rect.x2 = new_plane_state->fb->width; in dpu_plane_atomic_check_nosspp() 835 fb_rect.y2 = new_plane_state->fb->height; in dpu_plane_atomic_check_nosspp() 845 ret = dpu_format_populate_plane_sizes(new_plane_state->fb, &pstate->layout); in dpu_plane_atomic_check_nosspp() 858 new_plane_state->fb->width, new_plane_state->fb->height, in dpu_plane_atomic_check_nosspp() [all …]
|
/linux/drivers/gpu/drm/ingenic/ |
H A D | ingenic-ipu.c | 572 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in ingenic_ipu_plane_atomic_check() local 576 struct drm_crtc *crtc = new_plane_state->crtc ?: old_plane_state->crtc; in ingenic_ipu_plane_atomic_check() 592 if (!old_plane_state->crtc ^ !new_plane_state->crtc) in ingenic_ipu_plane_atomic_check() 595 if (!new_plane_state->crtc || in ingenic_ipu_plane_atomic_check() 600 if (new_plane_state->crtc_x < 0 || new_plane_state->crtc_y < 0 || in ingenic_ipu_plane_atomic_check() 601 new_plane_state->crtc_x + new_plane_state->crtc_w > crtc_state->mode.hdisplay || in ingenic_ipu_plane_atomic_check() 602 new_plane_state->crtc_y + new_plane_state->crtc_h > crtc_state->mode.vdisplay) in ingenic_ipu_plane_atomic_check() 606 if ((new_plane_state->src_w >> 16) < 4 || (new_plane_state->src_h >> 16) < 4) in ingenic_ipu_plane_atomic_check() 610 if (((new_plane_state->src_w >> 16) & 1) || (new_plane_state->crtc_w & 1)) in ingenic_ipu_plane_atomic_check() 613 if (!osd_changed(new_plane_state, old_plane_state)) in ingenic_ipu_plane_atomic_check() [all …]
|
H A D | ingenic-drm-drv.c | 460 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in ingenic_drm_plane_atomic_check() local 465 struct drm_crtc *crtc = new_plane_state->crtc ?: old_plane_state->crtc; in ingenic_drm_plane_atomic_check() 483 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in ingenic_drm_plane_atomic_check() 496 (new_plane_state->src_x != 0 || in ingenic_drm_plane_atomic_check() 497 (new_plane_state->src_w >> 16) != new_plane_state->crtc_w || in ingenic_drm_plane_atomic_check() 498 (new_plane_state->src_h >> 16) != new_plane_state->crtc_h)) in ingenic_drm_plane_atomic_check() 501 priv_state->use_palette = new_plane_state->fb && in ingenic_drm_plane_atomic_check() 502 new_plane_state->fb->format->format == DRM_FORMAT_C8; in ingenic_drm_plane_atomic_check() 509 (!old_plane_state->fb || !new_plane_state->fb || in ingenic_drm_plane_atomic_check() 510 old_plane_state->crtc_x != new_plane_state->crtc_x || in ingenic_drm_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/vkms/ |
H A D | vkms_plane.c | 137 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in vkms_plane_atomic_check() local 142 if (!new_plane_state->fb || WARN_ON(!new_plane_state->crtc)) in vkms_plane_atomic_check() 146 new_plane_state->crtc); in vkms_plane_atomic_check() 150 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in vkms_plane_atomic_check()
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
H A D | komeda_plane.c | 74 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in komeda_plane_atomic_check() local 77 struct komeda_plane_state *kplane_st = to_kplane_st(new_plane_state); in komeda_plane_atomic_check() 84 if (!new_plane_state->crtc || !new_plane_state->fb) in komeda_plane_atomic_check() 88 new_plane_state->crtc); in komeda_plane_atomic_check() 100 err = komeda_plane_init_data_flow(new_plane_state, kcrtc_st, &dflow); in komeda_plane_atomic_check()
|
/linux/drivers/gpu/drm/virtio/ |
H A D | virtgpu_plane.c | 80 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in virtio_gpu_plane_atomic_check() local 88 if (!new_plane_state->fb || WARN_ON(!new_plane_state->crtc)) in virtio_gpu_plane_atomic_check() 96 if (old_plane_state->fb != new_plane_state->fb) in virtio_gpu_plane_atomic_check() 97 new_plane_state->ignore_damage_clips = true; in virtio_gpu_plane_atomic_check() 100 new_plane_state->crtc); in virtio_gpu_plane_atomic_check() 104 ret = drm_atomic_helper_check_plane_state(new_plane_state, crtc_state, in virtio_gpu_plane_atomic_check()
|
/linux/drivers/gpu/drm/fsl-dcu/ |
H A D | fsl_dcu_drm_plane.c | 40 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in fsl_dcu_drm_plane_atomic_check() local 42 struct drm_framebuffer *fb = new_plane_state->fb; in fsl_dcu_drm_plane_atomic_check() 44 if (!new_plane_state->fb || !new_plane_state->crtc) in fsl_dcu_drm_plane_atomic_check()
|
/linux/drivers/gpu/drm/msm/disp/mdp5/ |
H A D | mdp5_plane.c | 334 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in mdp5_plane_atomic_check() local 339 crtc = new_plane_state->crtc ? new_plane_state->crtc : old_plane_state->crtc; in mdp5_plane_atomic_check() 348 return mdp5_plane_atomic_check_with_state(crtc_state, new_plane_state); in mdp5_plane_atomic_check() 373 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in mdp5_plane_atomic_async_check() local 375 struct mdp5_plane_state *mdp5_state = to_mdp5_plane_state(new_plane_state); in mdp5_plane_atomic_async_check() 381 new_plane_state->crtc); in mdp5_plane_atomic_async_check() 393 if (plane->state->crtc != new_plane_state->crtc || in mdp5_plane_atomic_async_check() 394 plane->state->src_w != new_plane_state->src_w || in mdp5_plane_atomic_async_check() 395 plane->state->src_h != new_plane_state->src_h || in mdp5_plane_atomic_async_check() 396 plane->state->crtc_w != new_plane_state->crtc_w || in mdp5_plane_atomic_async_check() [all …]
|
/linux/drivers/gpu/drm/tegra/ |
H A D | dc.c | 620 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state, in tegra_plane_atomic_check() local 622 struct tegra_plane_state *plane_state = to_tegra_plane_state(new_plane_state); in tegra_plane_atomic_check() 626 unsigned int rotation = new_plane_state->rotation; in tegra_plane_atomic_check() 629 struct tegra_dc *dc = to_tegra_dc(new_plane_state->crtc); in tegra_plane_atomic_check() 636 if (!new_plane_state->crtc) { in tegra_plane_atomic_check() 641 err = tegra_plane_format(new_plane_state->fb->format->format, in tegra_plane_atomic_check() 659 err = tegra_fb_get_tiling(new_plane_state->fb, tiling); in tegra_plane_atomic_check() 675 if (tegra_fb_is_bottom_up(new_plane_state->fb)) in tegra_plane_atomic_check() 695 if (new_plane_state->fb->format->num_planes > 2) { in tegra_plane_atomic_check() 696 if (new_plane_state->fb->pitches[2] != new_plane_state->fb->pitches[1]) { in tegra_plane_atomic_check() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_psr.c | 2475 struct intel_plane_state *new_plane_state; in intel_psr2_sel_fetch_et_alignment() local 2482 for_each_new_intel_plane_in_state(state, plane, new_plane_state, i) { in intel_psr2_sel_fetch_et_alignment() 2485 if (new_plane_state->uapi.crtc != crtc_state->uapi.crtc) in intel_psr2_sel_fetch_et_alignment() 2491 if (!new_plane_state->uapi.visible) in intel_psr2_sel_fetch_et_alignment() 2495 if (!drm_rect_intersect(&inter, &new_plane_state->uapi.dst)) in intel_psr2_sel_fetch_et_alignment() 2498 clip_area_update(&crtc_state->psr2_su_area, &new_plane_state->uapi.dst, in intel_psr2_sel_fetch_et_alignment() 2594 struct intel_plane_state *new_plane_state, *old_plane_state; in intel_psr2_sel_fetch_update() local 2619 new_plane_state, i) { in intel_psr2_sel_fetch_update() 2623 if (new_plane_state->uapi.crtc != crtc_state->uapi.crtc) in intel_psr2_sel_fetch_update() 2626 if (!new_plane_state->uapi.visible && in intel_psr2_sel_fetch_update() [all …]
|