]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm: Use the driver's gem_object_free function from CMA helpers.
authorEric Anholt <eric@anholt.net>
Tue, 15 Dec 2015 00:26:26 +0000 (16:26 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 15 Dec 2015 09:23:44 +0000 (10:23 +0100)
commit50cbc132460d448fd24b561883f7cff21d77f147
treeb82ee85df9fa865f316d740a3f425e1c054be243
parent6cecdf7a161d2b909dc7c8979176bbc4f0669968
drm: Use the driver's gem_object_free function from CMA helpers.

VC4 wraps the CMA objects in its own structures, so it needs to do its
own teardown (waiting for GPU to finish, updating bo_stats tracking).
The other CMA drivers are using drm_gem_cma_free_object as their
gem_free_object, so this should be a no-op for them.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_fb_cma_helper.c
drivers/gpu/drm/drm_gem_cma_helper.c