Lines Matching refs:plane_state
269 struct intel_plane_state *plane_state) in skl_update_scaler_plane() argument
272 to_intel_plane(plane_state->uapi.plane); in skl_update_scaler_plane()
274 struct drm_framebuffer *fb = plane_state->hw.fb; in skl_update_scaler_plane()
276 bool force_detach = !fb || !plane_state->uapi.visible; in skl_update_scaler_plane()
286 &plane_state->scaler_id, in skl_update_scaler_plane()
287 drm_rect_width(&plane_state->uapi.src) >> 16, in skl_update_scaler_plane()
288 drm_rect_height(&plane_state->uapi.src) >> 16, in skl_update_scaler_plane()
289 drm_rect_width(&plane_state->uapi.dst), in skl_update_scaler_plane()
290 drm_rect_height(&plane_state->uapi.dst), 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()
355 struct intel_plane_state *plane_state, in intel_atomic_setup_scaler() argument
379 if (plane_state && plane_state->hw.fb && in intel_atomic_setup_scaler()
380 plane_state->hw.fb->format->is_yuv && in intel_atomic_setup_scaler()
381 plane_state->hw.fb->format->num_planes > 1) { in intel_atomic_setup_scaler()
382 struct intel_plane *plane = to_intel_plane(plane_state->uapi.plane); 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()
423 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_atomic_setup_scaler()
424 const struct drm_rect *src = &plane_state->uapi.src; in intel_atomic_setup_scaler()
425 const struct drm_rect *dst = &plane_state->uapi.dst; in intel_atomic_setup_scaler()
539 struct intel_plane_state *plane_state = NULL; in intel_atomic_setup_scalers() local
594 plane_state = intel_atomic_get_new_plane_state(intel_state, in intel_atomic_setup_scalers()
596 scaler_id = &plane_state->scaler_id; in intel_atomic_setup_scalers()
601 plane_state, scaler_id); in intel_atomic_setup_scalers()
766 const struct intel_plane_state *plane_state) in skl_program_plane_scaler() argument
769 const struct drm_framebuffer *fb = plane_state->hw.fb; in skl_program_plane_scaler()
771 int scaler_id = plane_state->scaler_id; in skl_program_plane_scaler()
774 int crtc_x = plane_state->uapi.dst.x1; in skl_program_plane_scaler()
775 int crtc_y = plane_state->uapi.dst.y1; in skl_program_plane_scaler()
776 u32 crtc_w = drm_rect_width(&plane_state->uapi.dst); in skl_program_plane_scaler()
777 u32 crtc_h = drm_rect_height(&plane_state->uapi.dst); in skl_program_plane_scaler()
783 hscale = drm_rect_calc_hscale(&plane_state->uapi.src, in skl_program_plane_scaler()
784 &plane_state->uapi.dst, in skl_program_plane_scaler()
786 vscale = drm_rect_calc_vscale(&plane_state->uapi.src, in skl_program_plane_scaler()
787 &plane_state->uapi.dst, in skl_program_plane_scaler()
809 skl_scaler_get_filter_select(plane_state->hw.scaling_filter, 0); in skl_program_plane_scaler()
812 plane_state->hw.scaling_filter); in skl_program_plane_scaler()