Lines Matching refs:composer
27 struct vkms_composer *composer; in vkms_plane_duplicate_state() local
33 composer = kzalloc(sizeof(*composer), GFP_KERNEL); in vkms_plane_duplicate_state()
34 if (!composer) { in vkms_plane_duplicate_state()
40 vkms_state->composer = composer; in vkms_plane_duplicate_state()
57 if (drm_framebuffer_read_refcount(&vkms_state->composer->fb)) in vkms_plane_destroy_state()
58 drm_framebuffer_put(&vkms_state->composer->fb); in vkms_plane_destroy_state()
61 kfree(vkms_state->composer); in vkms_plane_destroy_state()
62 vkms_state->composer = NULL; in vkms_plane_destroy_state()
102 struct vkms_composer *composer; in vkms_plane_atomic_update() local
110 composer = vkms_plane_state->composer; in vkms_plane_atomic_update()
111 memcpy(&composer->src, &new_state->src, sizeof(struct drm_rect)); in vkms_plane_atomic_update()
112 memcpy(&composer->dst, &new_state->dst, sizeof(struct drm_rect)); in vkms_plane_atomic_update()
113 memcpy(&composer->fb, fb, sizeof(struct drm_framebuffer)); in vkms_plane_atomic_update()
114 memcpy(&composer->map, &shadow_plane_state->data, sizeof(composer->map)); in vkms_plane_atomic_update()
115 drm_framebuffer_get(&composer->fb); in vkms_plane_atomic_update()
116 composer->offset = fb->offsets[0]; in vkms_plane_atomic_update()
117 composer->pitch = fb->pitches[0]; in vkms_plane_atomic_update()
118 composer->cpp = fb->format->cpp[0]; in vkms_plane_atomic_update()