Skip to content

Commit 11c94ac

Browse files
robherringairlied
authored andcommitted
drm: virtio-gpu: get the fb from the plane state for atomic updates
When using the atomic API, plane->fb is not set when calling virtio_gpu_plane_atomic_update. Use plane->state->fb instead. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 8b9f089 commit 11c94ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/virtio/virtgpu_plane.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ static void virtio_gpu_plane_atomic_update(struct drm_plane *plane,
6868
struct virtio_gpu_object *bo;
6969
uint32_t handle;
7070

71-
if (plane->fb) {
72-
vgfb = to_virtio_gpu_framebuffer(plane->fb);
71+
if (plane->state->fb) {
72+
vgfb = to_virtio_gpu_framebuffer(plane->state->fb);
7373
bo = gem_to_virtio_gpu_obj(vgfb->obj);
7474
handle = bo->hw_res_handle;
7575
} else {

0 commit comments

Comments
 (0)