Commit 11c94ace authored by Rob Herring's avatar Rob Herring Committed by Dave Airlie

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: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 8b9f089f
...@@ -68,8 +68,8 @@ static void virtio_gpu_plane_atomic_update(struct drm_plane *plane, ...@@ -68,8 +68,8 @@ static void virtio_gpu_plane_atomic_update(struct drm_plane *plane,
struct virtio_gpu_object *bo; struct virtio_gpu_object *bo;
uint32_t handle; uint32_t handle;
if (plane->fb) { if (plane->state->fb) {
vgfb = to_virtio_gpu_framebuffer(plane->fb); vgfb = to_virtio_gpu_framebuffer(plane->state->fb);
bo = gem_to_virtio_gpu_obj(vgfb->obj); bo = gem_to_virtio_gpu_obj(vgfb->obj);
handle = bo->hw_res_handle; handle = bo->hw_res_handle;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment