Lines Matching refs:state
69 if (plane->state)
70 vkms_plane_destroy_state(plane, plane->state);
78 plane->state = &vkms_state->base;
79 plane->state->plane = plane;
95 struct drm_framebuffer *fb = plane->state->fb;
98 if (!plane->state->crtc || !fb)
101 vkms_plane_state = to_vkms_plane_state(plane->state);
104 memcpy(&composer->src, &plane->state->src, sizeof(struct drm_rect));
105 memcpy(&composer->dst, &plane->state->dst, sizeof(struct drm_rect));
114 struct drm_plane_state *state)
120 if (!state->fb || WARN_ON(!state->crtc))
123 crtc_state = drm_atomic_get_crtc_state(state->state, state->crtc);
130 ret = drm_atomic_helper_check_plane_state(state, crtc_state,
138 if (!state->visible && !can_position)
145 struct drm_plane_state *state)
150 if (!state->fb)
153 gem_obj = drm_gem_fb_get_obj(state->fb, 0);
158 return drm_gem_fb_prepare_fb(plane, state);