[PATCH 1/2] drm/virtio: Test for imported buffers with drm_gem_is_imported()
Dmitry Osipenko
dmitry.osipenko at collabora.com
Wed Apr 16 06:39:38 UTC 2025
On 4/14/25 16:12, Thomas Zimmermann wrote:
> Instead of testing import_attach for imported GEM buffers, invoke
> drm_gem_is_imported() to do the test. The helper tests the dma_buf
> itself while import_attach is just an artifact of the import. Prepares
> to make import_attach optional.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> ---
> drivers/gpu/drm/virtio/virtgpu_plane.c | 8 ++++----
> drivers/gpu/drm/virtio/virtgpu_prime.c | 2 +-
> 2 files changed, 5 insertions(+), 5 deletions(-)
Reviewed-by: Dmitry Osipenko <dmitry.osipenko at collabora.com>
--
Best regards,
Dmitry
More information about the dri-devel
mailing list