Re: [PATCH v4 2/4] drm/gem: Add drm_gem_object_funcs

2018-10-01 Thread Daniel Vetter
On Wed, Sep 26, 2018 at 04:59:31PM +0200, Noralf Trønnes wrote: > This adds an optional function table on GEM objects. > The main benefit is for drivers that support more than one type of > memory (shmem,vram,cma) for their buffers depending on the hardware it > runs on. With the callbacks attached

[PATCH v4 2/4] drm/gem: Add drm_gem_object_funcs

2018-09-26 Thread Noralf Trønnes
This adds an optional function table on GEM objects. The main benefit is for drivers that support more than one type of memory (shmem,vram,cma) for their buffers depending on the hardware it runs on. With the callbacks attached to the GEM object itself, it is easier to have core helpers for the the