panfrost: Get rid of the "free imported BO" logic
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 08:30:45 +0000 (10:30 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 12:57:35 +0000 (14:57 +0200)
commit6ba61324f03ced586efe4aed8b552a144314139a
tree781c7e30fdf0c950a8e44fdc7f2d8e0eb4cbd235
parent079aaa9c6d9c61f00a37a5a888091c7366c2bd6f
panfrost: Get rid of the "free imported BO" logic

bo->imported was never set to true which means this path was never taken.
Moreover, panfrost_drm_free_imported_bo() is doing missing the munmap()
call which seems wrong because the import BO function calls mmap().

Let's just kill this function along with the ->imported field.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
src/gallium/drivers/panfrost/pan_drm.c
src/gallium/drivers/panfrost/pan_resource.c
src/gallium/drivers/panfrost/pan_resource.h
src/gallium/drivers/panfrost/pan_screen.h