]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/etnaviv: Test for imported buffers with drm_gem_is_imported()
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 17 Mar 2025 13:06:40 +0000 (14:06 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 14 Apr 2025 08:53:11 +0000 (10:53 +0200)
commit970003de19a9cf7caa68a136b3bfa7334c8e7132
tree696ac5da7d00c62a2a60fb1f9f0ed52485be177d
parentfb10144ba426b88080c6abcede5f1332bebc3c60
drm/etnaviv: Test for imported buffers with drm_gem_is_imported()

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@suse.de>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Russell King <linux+etnaviv@armlinux.org.uk>
Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
Cc: etnaviv@lists.freedesktop.org
Reviewed-by: Lucas Stach <l.stach@pengutronix.de>
Link: https://lore.kernel.org/r/20250317131923.238374-3-tzimmermann@suse.de
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c