Lines Matching defs:state
108 * @state: The driver state object.
109 * @plane_state: Plane state for which to verify damage.
111 * This helper function makes sure that damage from plane state is discarded
116 * Note that &drm_plane_state.fb_damage_clips == NULL in plane state means that
120 void drm_atomic_helper_check_plane_damage(struct drm_atomic_state *state,
126 crtc_state = drm_atomic_get_new_crtc_state(state,
168 struct drm_atomic_state *state;
179 state = drm_atomic_state_alloc(fb->dev);
180 if (!state) {
184 state->acquire_ctx = &ctx;
215 ret = drm_modeset_lock(&plane->mutex, state->acquire_ctx);
219 if (plane->state->fb != fb) {
224 plane_state = drm_atomic_get_plane_state(state, plane);
234 ret = drm_atomic_commit(state);
238 drm_atomic_state_clear(state);
246 drm_atomic_state_put(state);
260 * @old_state: Old plane state for validation.
261 * @state: Plane state from which to iterate the damage clips.
278 const struct drm_plane_state *state)
282 if (!state || !state->crtc || !state->fb || !state->visible)
285 iter->clips = drm_helper_get_plane_damage_clips(state);
286 iter->num_clips = drm_plane_get_damage_clips_count(state);
289 iter->plane_src.x1 = state->src.x1 >> 16;
290 iter->plane_src.y1 = state->src.y1 >> 16;
291 iter->plane_src.x2 = (state->src.x2 >> 16) + !!(state->src.x2 & 0xFFFF);
292 iter->plane_src.y2 = (state->src.y2 >> 16) + !!(state->src.y2 & 0xFFFF);
294 if (!iter->clips || !drm_rect_equals(&state->src, &old_state->src)) {
346 * @old_state: Old plane state for validation.
347 * @state: Plane state from which to iterate the damage clips.
360 struct drm_plane_state *state,
372 drm_atomic_helper_damage_iter_init(&iter, old_state, state);