[PATCH] drm/virtio: fix prime export for vram objects

Gurchetan Singh gurchetansingh at chromium.org
Fri Jan 8 01:47:26 UTC 2021


On Thu, Jan 7, 2021 at 1:07 PM Chia-I Wu <olvaffe at gmail.com> wrote:

> 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 at chromium.org>
> Cc: Thomas Zimmermann <tzimmermann at suse.de>
> Cc: Gerd Hoffmann <kraxel at redhat.com>
> Signed-off-by: Chia-I Wu <olvaffe at gmail.com>
> ---
>  drivers/gpu/drm/virtio/virtgpu_vram.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/virtio/virtgpu_vram.c
> b/drivers/gpu/drm/virtio/virtgpu_vram.c
> index d6f215c4ff8d..5cc34e7330fa 100644
> --- a/drivers/gpu/drm/virtio/virtgpu_vram.c
> +++ b/drivers/gpu/drm/virtio/virtgpu_vram.c
> @@ -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)
> --
> 2.29.2.729.g45daf8777d-goog
>
>
Reviewed-by: Gurchetan Singh <gurchetansingh at chromium.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20210107/fd4d09fe/attachment-0001.htm>


More information about the dri-devel mailing list