[PATCH] drm/cma-helper: Make default object functions the default

Sam Ravnborg sam at ravnborg.org
Fri Nov 6 16:18:09 UTC 2020


Hi Thomas.

On Fri, Nov 06, 2020 at 02:16:32PM +0100, Thomas Zimmermann wrote:
> As GEM object functions are now mandatory, DRM drivers based on CMA
> helpers either set them in their implementation of gem_create_object,
> or use the default via drm_gem_cma_create_object_default_funcs().
> 
> Simplify this by setting the default CMA object functions for all
> objects that don't have any functions of their own. Follows the pattern
> of similar code in SHMEM and VRAM helpers. The function
> drm_gem_cma_create_object_default_funcs() is redundant and therefore
> being removed.
> 
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>

Nice cleanup after all the groundwork you made in order to reach this
step. 

Reviewed-by: Sam Ravnborg <sam at ravnborg.org>

	Sam


More information about the dri-devel mailing list