Lines Matching refs:state

78 					 struct drm_atomic_state *state)
80 struct drm_plane_state *new_plane_state = drm_atomic_get_new_plane_state(state,
82 struct drm_plane_state *old_plane_state = drm_atomic_get_old_plane_state(state,
92 * Ignore damage clips if the framebuffer attached to the plane's state
99 crtc_state = drm_atomic_get_crtc_state(state,
112 struct drm_plane_state *state,
116 gem_to_virtio_gpu_obj(state->fb->obj[0]);
122 uint32_t off = x * state->fb->format->cpp[0] +
123 y * state->fb->pitches[0];
143 vgfb = to_virtio_gpu_framebuffer(plane->state->fb);
169 struct drm_atomic_state *state)
171 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state,
179 if (plane->state->crtc)
180 output = drm_crtc_to_virtio_gpu_output(plane->state->crtc);
186 if (!plane->state->fb || !output->crtc.state->active) {
189 plane->state->src_w >> 16,
190 plane->state->src_h >> 16,
196 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect))
199 bo = gem_to_virtio_gpu_obj(plane->state->fb->obj[0]);
201 virtio_gpu_update_dumb_bo(vgdev, plane->state, &rect);
203 if (plane->state->fb != old_state->fb ||
204 plane->state->src_w != old_state->src_w ||
205 plane->state->src_h != old_state->src_h ||
206 plane->state->src_x != old_state->src_x ||
207 plane->state->src_y != old_state->src_y ||
212 plane->state->crtc_w, plane->state->crtc_h,
213 plane->state->crtc_x, plane->state->crtc_y,
214 plane->state->src_w >> 16,
215 plane->state->src_h >> 16,
216 plane->state->src_x >> 16,
217 plane->state->src_y >> 16);
222 plane->state->fb,
223 plane->state->src_w >> 16,
224 plane->state->src_h >> 16,
225 plane->state->src_x >> 16,
226 plane->state->src_y >> 16);
230 plane->state->src_w >> 16,
231 plane->state->src_h >> 16,
232 plane->state->src_x >> 16,
233 plane->state->src_y >> 16);
260 if (bo->dumb && (plane->state->fb != new_state->fb)) {
271 struct drm_plane_state *state)
275 if (!state->fb)
278 vgfb = to_virtio_gpu_framebuffer(state->fb);
286 struct drm_atomic_state *state)
288 struct drm_plane_state *old_state = drm_atomic_get_old_plane_state(state,
297 if (plane->state->crtc)
298 output = drm_crtc_to_virtio_gpu_output(plane->state->crtc);
304 if (plane->state->fb) {
305 vgfb = to_virtio_gpu_framebuffer(plane->state->fb);
312 if (bo && bo->dumb && (plane->state->fb != old_state->fb)) {
323 plane->state->crtc_w,
324 plane->state->crtc_h,
332 if (plane->state->fb != old_state->fb) {
334 plane->state->crtc_x,
335 plane->state->crtc_y,
336 plane->state->fb ? plane->state->fb->hot_x : 0,
337 plane->state->fb ? plane->state->fb->hot_y : 0);
341 if (plane->state->fb) {
343 cpu_to_le32(plane->state->fb->hot_x);
345 cpu_to_le32(plane->state->fb->hot_y);
352 plane->state->crtc_x,
353 plane->state->crtc_y);
357 output->cursor.pos.x = cpu_to_le32(plane->state->crtc_x);
358 output->cursor.pos.y = cpu_to_le32(plane->state->crtc_y);