Re: [PATCH RFC 13/18] drm/gem: Add a flag to control whether objects can be exported

2023-04-05 Thread Daniel Vetter
On Tue, Mar 07, 2023 at 11:25:38PM +0900, Asahi Lina wrote: > Drivers may want to support driver-private objects, which cannot be > shared. This allows them to share a single lock and enables other > optimizations. > > Add an `exportable` field to drm_gem_object, which blocks PRIME export > if

[PATCH RFC 13/18] drm/gem: Add a flag to control whether objects can be exported

2023-03-07 Thread Asahi Lina
Drivers may want to support driver-private objects, which cannot be shared. This allows them to share a single lock and enables other optimizations. Add an `exportable` field to drm_gem_object, which blocks PRIME export if set to false. It is initialized to true in drm_gem_private_object_init.