Re: [PATCH v3 01/12] drm: add gem array helpers

2019-06-19 Thread Gerd Hoffmann
> > +struct drm_gem_object_array* > > +drm_gem_array_from_handles(struct drm_file *drm_file, u32 *handles, u32 > > nents) > > +{ > > + struct drm_gem_object_array *objs; > > + u32 i; > > + > > + objs = drm_gem_array_alloc(nents); > > + if (!objs) > > + return NULL; > > + > > +

Re: [PATCH v3 01/12] drm: add gem array helpers

2019-06-19 Thread Daniel Vetter
On Wed, Jun 19, 2019 at 11:04:09AM +0200, Gerd Hoffmann wrote: > Add struct and helper functions to manage an array of gem objects. > See added kernel docs for details. > > Signed-off-by: Gerd Hoffmann Hm, feels like jumping ahead here, I think there's too much still in-flight: - Christian is po

Re: [PATCH v3 01/12] drm: add gem array helpers

2019-06-19 Thread Emil Velikov
Hi Gerd, On 2019/06/19, Gerd Hoffmann wrote: > +/** > + * drm_gem_array_from_handles -- lookup an array of gem handles. > + * > + * @drm_file: drm file-private structure to use for the handle look up > + * @handles: the array of handles to lookup. > + * @nents: the numer of handles. > + * > + * R