[PATCH 1/9] drm: Create a driver hook for allocating GEM object structs.

2015-12-02 Thread Daniel Vetter
On Tue, Dec 01, 2015 at 12:35:50PM -0800, Eric Anholt wrote: > The CMA helpers had no way for a driver to extend the struct with its > own fields. Since the CMA helpers are mostly "Allocate a > drm_gem_cma_object, then fill in a few fields", it's hard to write as > pure helpers without passing in

[PATCH 1/9] drm: Create a driver hook for allocating GEM object structs.

2015-12-01 Thread Eric Anholt
The CMA helpers had no way for a driver to extend the struct with its own fields. Since the CMA helpers are mostly "Allocate a drm_gem_cma_object, then fill in a few fields", it's hard to write as pure helpers without passing in a driver callback for the allocate step. Signed-off-by: Eric Anholt