diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2020-02-26 16:25:55 -0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-02-27 11:31:34 +0100 |
commit | 18b39fb975b79d6526449ca7c8ab504bc92e2825 (patch) | |
tree | 8c03dd9b429ab6093e4500f8d456dbaf521da3f5 /drivers/gpu/drm/drm_client_modeset.c | |
parent | 068a8fea373fe79016abf327d88eb733cca8f6a7 (diff) |
drm/virtio: add virtio_gpu_is_shmem helper
The plan is use have both shmem and virtual "vram" running
side-by-side in virtio-gpu. It looks like we'll eventually use
struct drm_gem_object as a base class, and we'll need to convert
to shmem and vram objects on the fly. As a first step, add a
virtio_gpu_is_shmem helper. Thanks to kraxel for suggesting this
approach on Gitlab.
Suggested-by: Gerd Hoffman <kraxel@redhat.com>
Signed-off-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20200227002601.745-3-gurchetansingh@chromium.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_client_modeset.c')
0 files changed, 0 insertions, 0 deletions