]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/virtio: fix prime export for vram objects
authorChia-I Wu <olvaffe@gmail.com>
Thu, 7 Jan 2021 21:07:43 +0000 (13:07 -0800)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 11 Jan 2021 07:49:48 +0000 (08:49 +0100)
commit 16845c5d5409 ("drm/virtio: implement blob resources: implement
vram object") and commit c6069a02fa55 ("drm/virtgpu: Set PRIME export
function in struct drm_gem_object_funcs") landed from different trees,
resulting in prime export never working for vram objects.

Cc: Gurchetan Singh <gurchetansingh@chromium.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20210107210743.269885-1-olvaffe@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_vram.c

index d6f215c4ff8dfc59b54777a274aed71e24f8e2c3..5cc34e7330fa5ab45fbbfa412c6d9adef6bca1cf 100644 (file)
@@ -69,6 +69,7 @@ static const struct drm_gem_object_funcs virtio_gpu_vram_funcs = {
        .close = virtio_gpu_gem_object_close,
        .free = virtio_gpu_vram_free,
        .mmap = virtio_gpu_vram_mmap,
+       .export = virtgpu_gem_prime_export,
 };
 
 bool virtio_gpu_is_vram(struct virtio_gpu_object *bo)