Skip to content

Commit

Permalink
drm: virtio-gpu: get the fb from the plane state for atomic updates
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring authored and Dave Airlie committed Feb 10, 2016
1 parent 8b9f089 commit 11c94ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/virtio/virtgpu_plane.c
Original file line number Diff line number Diff line change
@@ -68,8 +68,8 @@ static void virtio_gpu_plane_atomic_update(struct drm_plane *plane,
struct virtio_gpu_object *bo;
uint32_t handle;

if (plane->fb) {
vgfb = to_virtio_gpu_framebuffer(plane->fb);
if (plane->state->fb) {
vgfb = to_virtio_gpu_framebuffer(plane->state->fb);
bo = gem_to_virtio_gpu_obj(vgfb->obj);
handle = bo->hw_res_handle;
} else {

0 comments on commit 11c94ac

Please sign in to comment.