Re: [PATCH 1/3] drm: Enable PRIME import/export for all drivers

2023-06-15 Thread Simon Ser
On Thursday, June 15th, 2023 at 11:31, Thomas Zimmermann wrote: > diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h > index 89e2706cac561..10af1899236a0 100644 > --- a/include/drm/drm_drv.h > +++ b/include/drm/drm_drv.h > @@ -309,6 +309,9 @@ struct drm_driver { >* >*

[PATCH 1/3] drm: Enable PRIME import/export for all drivers

2023-06-15 Thread Thomas Zimmermann
Call drm_gem_prime_handle_to_fd() and drm_gem_prime_fd_to_handle() by default if no PRIME import/export helpers have been set. Both functions are the default for almost all drivers. DRM drivers implement struct drm_driver.gem_prime_import_sg_table to import dma-buf objects from other drivers.