Re: [PATCH v4 8/8] drm/vram-helper: Support struct drm_driver.gem_create_object

2020-01-07 Thread Gerd Hoffmann
On Mon, Jan 06, 2020 at 01:57:45PM +0100, Thomas Zimmermann wrote: > Drivers that what to allocate VRAM GEM objects with additional fields > can now do this by implementing struct drm_driver.gem_create_object. > > v3: > * separately check allocation failure in if/else branches > befo

[PATCH v4 8/8] drm/vram-helper: Support struct drm_driver.gem_create_object

2020-01-06 Thread Thomas Zimmermann
Drivers that what to allocate VRAM GEM objects with additional fields can now do this by implementing struct drm_driver.gem_create_object. v3: * separately check allocation failure in if/else branches before upcast to gbo v2: * only cast to gbo within if branch; set gbo d