Lines Matching defs:state
86 struct drm_plane_state *state)
92 if (!state->fb || WARN_ON(!state->crtc))
95 crtc_state = drm_atomic_get_crtc_state(state->state, state->crtc);
99 ret = drm_atomic_helper_check_plane_state(state, crtc_state,
107 struct drm_plane_state *state,
111 gem_to_virtio_gpu_obj(state->fb->obj[0]);
117 uint32_t off = x * state->fb->format->cpp[0] +
118 y * state->fb->pitches[0];
138 if (plane->state->crtc)
139 output = drm_crtc_to_virtio_gpu_output(plane->state->crtc);
145 if (!plane->state->fb || !output->crtc.state->active) {
148 plane->state->src_w >> 16,
149 plane->state->src_h >> 16,
155 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect))
158 bo = gem_to_virtio_gpu_obj(plane->state->fb->obj[0]);
160 virtio_gpu_update_dumb_bo(vgdev, plane->state, &rect);
162 if (plane->state->fb != old_state->fb ||
163 plane->state->src_w != old_state->src_w ||
164 plane->state->src_h != old_state->src_h ||
165 plane->state->src_x != old_state->src_x ||
166 plane->state->src_y != old_state->src_y ||
171 plane->state->crtc_w, plane->state->crtc_h,
172 plane->state->crtc_x, plane->state->crtc_y,
173 plane->state->src_w >> 16,
174 plane->state->src_h >> 16,
175 plane->state->src_x >> 16,
176 plane->state->src_y >> 16);
179 plane->state->src_w >> 16,
180 plane->state->src_h >> 16,
181 plane->state->src_x >> 16,
182 plane->state->src_y >> 16);
206 if (bo && bo->dumb && (plane->state->fb != new_state->fb)) {
216 struct drm_plane_state *state)
220 if (!state->fb)
223 vgfb = to_virtio_gpu_framebuffer(state->fb);
240 if (plane->state->crtc)
241 output = drm_crtc_to_virtio_gpu_output(plane->state->crtc);
247 if (plane->state->fb) {
248 vgfb = to_virtio_gpu_framebuffer(plane->state->fb);
255 if (bo && bo->dumb && (plane->state->fb != old_state->fb)) {
266 plane->state->crtc_w,
267 plane->state->crtc_h,
275 if (plane->state->fb != old_state->fb) {
277 plane->state->crtc_x,
278 plane->state->crtc_y,
279 plane->state->fb ? plane->state->fb->hot_x : 0,
280 plane->state->fb ? plane->state->fb->hot_y : 0);
284 if (plane->state->fb) {
286 cpu_to_le32(plane->state->fb->hot_x);
288 cpu_to_le32(plane->state->fb->hot_y);
295 plane->state->crtc_x,
296 plane->state->crtc_y);
300 output->cursor.pos.x = cpu_to_le32(plane->state->crtc_x);
301 output->cursor.pos.y = cpu_to_le32(plane->state->crtc_y);