drm/virtio: factor out the sg_table from virtio_gpu_object
authorGurchetan Singh <gurchetansingh@chromium.org>
Thu, 5 Mar 2020 01:32:11 +0000 (17:32 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 9 Mar 2020 09:44:34 +0000 (10:44 +0100)
commitf651c8b055423057d9f41525dfdc37b4796015d1
treea17cf4e8bb0098ff49e79404b06576a4fefb79d4
parentee21ec7767621c1adb0a388e0e7d841674cdc43f
drm/virtio: factor out the sg_table from virtio_gpu_object

A resource will be a shmem based resource or a (planned)
vram based resource, so it makes sense to factor out common fields
(resource handle, dumb).

v2: move mapped field to shmem object

Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200305013212.130640-1-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_drv.h
drivers/gpu/drm/virtio/virtgpu_object.c
drivers/gpu/drm/virtio/virtgpu_vq.c